That is definitely be an issue for aop. From what I can see of the test, when we add a
method to the underlying CtClass the ClassInfo wrapper is not updated. I think the
ClassInfo's MethodInfos etc. are cached on first load, and not refreshed at all.
One solution would be to add a refresh() method to ClassInfo, but there are probably some
other and better solutions too. When I mentioned the MutableClassInfo stuff to Ales, he
mentioned adding an AOP view to ClassInfo, MethodInfo etc. containing the new stuff added
by AOP, but I am not sure how that would be added since instantiation of all those objects
are hidden inside jboss-reflect.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200368#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...