[jboss-jira] [JBoss JIRA] Updated: (JASSIST-137) getDeclaringClass() throws IncompatibleClassChangeError on copy of inner class
Ragnar Rova (JIRA)
jira-events at lists.jboss.org
Tue Jan 25 16:17:53 EST 2011
[ https://issues.jboss.org/browse/JASSIST-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ragnar Rova updated JASSIST-137:
--------------------------------
Priority: Minor (was: Major)
Maybe I am using the API in the wrong way or this kind of usage involving inner classes is not supported by javaassist. Would be nice to see an explanation for this behavior anyway.
> getDeclaringClass() throws IncompatibleClassChangeError on copy of inner class
> ------------------------------------------------------------------------------
>
> Key: JASSIST-137
> URL: https://issues.jboss.org/browse/JASSIST-137
> Project: Javassist
> Issue Type: Bug
> Affects Versions: 3.14.0.GA
> Environment: sun jdk1.6.0_21
> Reporter: Ragnar Rova
> Assignee: Shigeru Chiba
> Priority: Minor
>
> Creating a copy of a inner class and then calling getDeclaringClass() on the copied class causes error. How to create a copy of such a class?
> java.lang.IncompatibleClassChangeError: foo.GetDeclaringClassTest and foo.GetDeclaringClassTest$Foo$BackRef disagree on InnerClasses attribute
> at java.lang.Class.getDeclaringClass(Native Method)
> at foo.GetDeclaringClassTest.get_declaring_class_should_not_throw_error(GetDeclaringClassTest.java:20)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list