Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5208

AttributeDefinition.getDefaultValue() returns null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • metatype-1.1.2
    • None
    • Metatype Service
    • None

    Description

      Whenever a Property is defined with an empty default value, AttributeDefinition.getDefaultValue() returns a null.
      For ex:
      <code>
      @Property(value = "")
      private static final String LOG_PART1_PATH = BTM_PREFIX + "logPart1Path";
      </code>
      In this case, AttributeDefinition.getDefaultValue() returns null instead of

      {""}

      , i.e,. a string array with an empty string.

      This issues is not seen in 1.0.6, the version of felix I'm using. But, when I migrate to 1.1.2, face this issue.

      I suspect the fixes FELIX-3757 and FELIX-3758 are the culprits. These were fixed between 1.0.6 and 1.0.8

      Attachments

        Activity

          People

            Unassigned Unassigned
            Gali Raghavendra Gali
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: