JBoss development,
A new message was posted in the thread "Help: Error [Instrumentor] AOP Instrumentor
failed":
http://community.jboss.org/message/521746#521746
Author : Flavia Rainone
Profile :
http://community.jboss.org/people/flavia.rainone@jboss.com
Message:
--------------------------------------------------------------
Taking a look at the piece of code that throws that exception, in
GeneratedAdvisorInstrumentor.createAdvisorCtors:
//This will be called when a class instantiates its advisor
CtConstructor ctor = CtNewConstructor.defaultConstructor(genadvisor);
ctor.setBody(
"{" +
" super(\"" + clazz.getName() + "\"); " +
"
initialise(org.jboss.aop.AspectManager.instance(org.jboss.aop.advice.SecurityActions.getClassLoader(this.getClass())),
false);" + //Use the CL of the class, since we may be in a scoped loader
"}");
genadvisor.addConstructor(ctor);
I think it doesn't make too much sense, since the constructor is created in the
previous line.
Maybe this is a Javassist bug. Kabir, what do you think of this?
--------------------------------------------------------------
To reply to this message visit the message page:
http://community.jboss.org/message/521746#521746