Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
API 2.21.0
-
None
Description
SLING-8116 delegates value conversions to the org.osgi.util.converter.Converter. However, JCR values will be wrongly processed by the Converter, since it will first convert them to maps and then return the map's key if the key's type is the same as the conversion type. For JCR values, the Map's keys will be the value's public method names, whereas the values will be the invocation of said methods. This is definitely not the behaviour we want.
The simplest solution would be to optionally import the javax.jcr API and, if present, add some custom rules based on javax.jcr.Value into the Converter.
Attachments
Issue Links
- is caused by
-
SLING-8116 ValueMap - implement default methods using OSGI Converter
- Closed
- links to