[
https://issues.apache.org/jira/browse/JXPATH-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257293#comment-13257293
]
Naozumi Taromaru commented on JXPATH-152:
-----------------------------------------
> correction method 3: (JDK1.3 compatible. but contrary to usage.)
Sorry, it has problem.
ArrayIndexOutOfBoundsException may occur.
The problem did not occur in the case of Sun(Oracle) JDK5.
result of get method:
* return null
* return value object
But, the problem occured in the case of Sun(Oracle) JDK6.
result of get method:
* return null
* return value object
* throw ArrayIndexOutOfBoundsException
> Concurrent access on hashmap of JXPathIntrospector
> --------------------------------------------------
>
> Key: JXPATH-152
> URL: https://issues.apache.org/jira/browse/JXPATH-152
> Project: Commons JXPath
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: Java5, Windows/AIX
> Reporter: pleutre
> Assignee: Matt Benson
> Priority: Minor
> Fix For: 1.4
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> JXPathIntrospector.registerDynamicClass method can be called in static part
> of classes.
> If two classes A & B try to registerDynamicClass in the same time a
> concurrent access exception can append on hashmap of JXPathIntrospector.
> Replace hashmap by concurrent hashmap or synchronized access to these
> hashmaps.
--
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