Justin Edelson created SLING-2559:
-------------------------------------

             Summary: SlingHandlerManager uses setValue() on entries retrieved 
from a java.util.TreeMap
                 Key: SLING-2559
                 URL: https://issues.apache.org/jira/browse/SLING-2559
             Project: Sling
          Issue Type: Bug
          Components: JCR
    Affects Versions: JCR Webdav 2.1.0
            Reporter: Justin Edelson


Line 67 of org.apache.sling.jcr.webdav.impl.handler.SlingHandlerManager calls 
setValue() on a java.util.Map.Entry object retrieved from a TreeMap (indirectly 
through the entries collection). This is not allowed per the JavaDoc:

http://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html

"All Map.Entry pairs returned by methods in this class and its views represent 
snapshots of mappings at the time they were produced. They do not support the 
Entry.setValue method. (Note however that it is possible to change mappings in 
the associated map using put.)"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to