This content has been marked as final.
Show 2 replies
-
1. Re: Runtime Exception when I try to getInterfaces() of a CtClass
megalodon Jan 13, 2010 12:34 AM (in response to megalodon)Hello All,
Here is some additional information. I don't get this runtime error when I get the CtClass object using ClassPool.get() or when I call functions like getName() or getPackageName() for the obtained CtClass object. However, when I call functions like getModifiers() or getInterfaces(), I get the exception. Here is snip of the stack trace.
javassist.CtClassType.getClassFile2(CtClassType.java:192)
javassist.CtClassType.getModifiers(CtClassType.java:387)Please let me know why I am getting this issue. Thanks!
-Arvind
-
2. Re: Runtime Exception when I try to getInterfaces() of a CtClass
megalodon Jan 13, 2010 5:24 AM (in response to megalodon)made a work-around by loading and transforming classes using a standard ClassFileTransformer and using the bytes of the loading class to make CtClass objects using ClassPool.makeClassIfNew() function. Still getting exceptions but i seem to have gotten a little further.