BeanConfig may incorrectly throw ConfigurationException
-------------------------------------------------------
Key: JCR-1738
URL: https://issues.apache.org/jira/browse/JCR-1738
Project: Jackrabbit
Issue Type: Bug
Components: jackrabbit-core
Reporter: Marcel Reutegger
Priority: Minor
Fix For: 1.5
With the changes from JCR-1462 the BeanConfig.newInstance() may throw a
ConfigurationException if the bean does not support a configuration parameter
that is configured.
There may be cases where the check in newInstance() yields an unsupported
property even though there is a bean property present with the given key.
Because the implementation uses 'map.get(key) == null' as a check for a
property name the method will throw if the key exists but the value is null.
The implementation should rather use 'map.containsKey(key)'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.