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

Sling Models: Unexpected behaviour from Default

    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

        1. SLING-3911-1.patch
          1 kB
          Jason E Bailey
        2. SLING-3911-2.patch
          8 kB
          Jason E Bailey

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: