[
https://issues.apache.org/jira/browse/SLING-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Felix Meschberger resolved SLING-2697.
--------------------------------------
Resolution: Fixed
Fixed in Rev. 1419297
> ResourceWrapper.toString may return empty class name
> ----------------------------------------------------
>
> Key: SLING-2697
> URL: https://issues.apache.org/jira/browse/SLING-2697
> Project: Sling
> Issue Type: Bug
> Components: API
> Affects Versions: API 2.3.0
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: API 2.3.2
>
>
> The ResourceWrapper.toString checks whether the class.getSimpleName() method
> returns a null value and uses the full class name in this case. For anonymous
> classes, though, the method returns an empty string and thus the output of a
> wrapped resource starts with a comma instead of a class name.
> Fix is to not only check for null (does this make sense at all) but for an
> empty string.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira