You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (JIRA)" <ji...@apache.org> on 2012/08/13 16:30:38 UTC

[jira] [Created] (SLING-2559) SlingHandlerManager uses setValue() on entries retrieved from a java.util.TreeMap

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

        

[jira] [Resolved] (SLING-2559) SlingHandlerManager uses setValue() on entries retrieved from a java.util.TreeMap

Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Edelson resolved SLING-2559.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: JCR Webdav 2.1.2

fixed in r1372539
                
> 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
>            Assignee: Justin Edelson
>             Fix For: JCR Webdav 2.1.2
>
>
> 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

        

[jira] [Assigned] (SLING-2559) SlingHandlerManager uses setValue() on entries retrieved from a java.util.TreeMap

Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Edelson reassigned SLING-2559:
-------------------------------------

    Assignee: Justin Edelson
    
> 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
>            Assignee: 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