Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3911

Sling Models: Unexpected behaviour from Default

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Current application of the @Default annotation has unexpected results

      @Default() int[] intExample; 
      // sets intExample to a non empty array of [0]
      
      @Default(longValues={1,1}) int[] intExample2;
      // sets intExample2 to a non empty array of [0]
      
      

      This experience occurs will all supported array types

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            justinedelson Justin Edelson
            jebailey Jason E Bailey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment