-
1. Re: CtClass getNestedClasses() returns the same class when applied to an anonymous class
damdamdam May 18, 2010 9:47 AM (in response to damdamdam)Another issue about this method :
I have my anonymous class "com.bla.MyClass$1", which contains another anonymous class, which gives "com.bla.MyClass$1$1".
When I try the getNestedClasses on the first class, it returns the second class (normal I guess, because it is nested), and the first one itself (first bug explained before).
But when I try the getNestedClass on the second class "com.bla.MyClass$1$1", it returns the class itself (the same bug), BUT it returns the declaring class "com.bla.MyClass$1". Gets me in an infinite loop !
I am trying to search where the problem comes from to fix it. If it's not possible, i would like to know if a class is an anonymous : would be great to have an isAnonymous() method on a CtClass.
Can anybody confirm me he gets the same thing ? And if it is a bug (if not, that's really weird) ?
Anyway, thanks a lot for the brilliant work, javassist helps me a lot in my everyday work !
Dam.
-
2. Re: CtClass getNestedClasses() returns the same class when applied to an anonymous class
damdamdam May 31, 2010 10:48 AM (in response to damdamdam)Could anyone log this as a bug please ? I can't access to the Bug Tracker (which is normal I think). Or at least, tell us if it's not going to be corrected. Thanks
-
3. Re: CtClass getNestedClasses() returns the same class when applied to an anonymous class
velias Jun 1, 2010 8:40 AM (in response to damdamdam)Hi,
why you are not able to access bug tracker? Same credentials may be used into our JIRA as you are using to login into community.jboss.org.
Vlastik