Konrad Windszus created SLING-8275:
--------------------------------------

             Summary: ConfigurationBuilder.asValueMap() does not return an 
empty value map in case configuration is not there
                 Key: SLING-8275
                 URL: https://issues.apache.org/jira/browse/SLING-8275
             Project: Sling
          Issue Type: Bug
    Affects Versions: Context-Aware Configuration Impl 1.4.14, Context-Aware 
Configuration API 1.1.2
            Reporter: Konrad Windszus


Although the javadoc of 
{{org.apache.sling.caconfig.ConfigurationBuilder.asValueMap(...)}} states
{quote}Returns:
Value map. Map is empty if content resource or configuration cannot be 
found.{quote}
this is in fact not true. 
Instead the value map will contain the default values from the underlying 
annotation value, similar to {{ConfigurationBuilder.as(...)}}. Either the 
javadoc or the implementation needs to be fixed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to