[ https://issues.apache.org/jira/browse/SLING-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz resolved SLING-2785. ---------------------------------------- Resolution: Fixed Fixed in revision 1455511. P.S. I like Wittekop, and generally Ambers are good as well. > ResourceMetadata.entrySet() and related methods cause stack overflow when > locked > -------------------------------------------------------------------------------- > > Key: SLING-2785 > URL: https://issues.apache.org/jira/browse/SLING-2785 > Project: Sling > Issue Type: Bug > Components: API > Affects Versions: API 2.3.0, Resource Resolver 1.0.4 > Reporter: Bertrand Delacretaz > Assignee: Bertrand Delacretaz > Fix For: API 2.4.0, Resource Resolver 1.1.0 > > > Code like below causes an infinite loop (maybe depending on JVM/java libs): > @Override > public Set<java.util.Map.Entry<String, Object>> entrySet() { > if ( this.isReadOnly ) { > return this.getUnmodifiableMap().entrySet(); > } > return super.entrySet(); > } > I'll add tests and suggest a fix. -- 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