[
https://issues.jboss.org/browse/JASSIST-136?page=com.atlassian.jira.plugi...
]
Ragnar Rova commented on JASSIST-136:
-------------------------------------
Removing the static modifier of the inner class and naming the class copy without
appending $ still causes an error to be thrown.
getDeclaringClass() throws IncompatibleClassChangeError on copy of
inner class
------------------------------------------------------------------------------
Key: JASSIST-136
URL:
https://issues.jboss.org/browse/JASSIST-136
Project: Javassist
Issue Type: Bug
Affects Versions: 3.14.0.GA
Environment: sun jdk1.6.0_21
Reporter: Ragnar Rova
Assignee: Shigeru Chiba
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