[jboss-jira] [JBoss JIRA] (JBAOP-806) Using UnmodifiableLinkedHashMap constructor causes an UnsupportedOperationException exception to be thrown on IBM JDK

Kabir Khan (JIRA) jira-events at lists.jboss.org
Fri Nov 30 11:46:21 EST 2012


     [ https://issues.jboss.org/browse/JBAOP-806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kabir Khan resolved JBAOP-806.
------------------------------

    Fix Version/s: 2.1.6.CP06
                       (was: 2.1.6.CP04)
       Resolution: Done

    
> Using UnmodifiableLinkedHashMap constructor causes an UnsupportedOperationException exception to be thrown on IBM JDK
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAOP-806
>                 URL: https://issues.jboss.org/browse/JBAOP-806
>             Project: JBoss AOP
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.1.6.CP02
>         Environment: OS: Fedora 14
> JDK: IBM JDK
>            Reporter: Dustin Kut Moy Cheung
>            Assignee: Kabir Khan
>            Priority: Critical
>             Fix For: 2.1.6.CP06, 2.2.3.GA, TRUNK
>
>         Attachments: JBPAPP-5925.patch
>
>
> Read Summary. This error is caused because the IBM JDK LinkedHashMap invokes the putAll method on HashMap. Since the putAll method is overwridden in UnmodifiableLinkedHashMap.java, the UnmodifiableLinkedHashMap putAll method is called instead of the HashMap  constructor and therefore throws that exception.
> The fix is to change the signature of the constructor being called (LinkedHashMap constructor) so that the putAll method is not called.
> Please see the patch that attempts to solve this issue.

--
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


More information about the jboss-jira mailing list