You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Raghavendra Gali (JIRA)" <ji...@apache.org> on 2016/03/08 16:02:40 UTC

[jira] [Created] (FELIX-5208) AttributeDefinition.getDefaultValue() returns null

Raghavendra Gali created FELIX-5208:
---------------------------------------

             Summary: AttributeDefinition.getDefaultValue() returns null
                 Key: FELIX-5208
                 URL: https://issues.apache.org/jira/browse/FELIX-5208
             Project: Felix
          Issue Type: Bug
          Components: Metatype Service
    Affects Versions: metatype-1.1.2
            Reporter: Raghavendra Gali


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)