Here is a original code of a problem,
I think problem is in the new operator.
CtMethod add = CtNewMethod
.make(
"public net.jini.core.event.EventRegistration
addMonitoringRemoteEventListener(net.jini.core.event.RemoteEventListener listener)
throws java.rmi.RemoteException { $0.listenerList.addElement(listener); return new
net.jini.core.event.EventRegistration(0L, this, null, 0L); }",
clas);
clas.addMethod(add);
add.setModifiers(Modifier.PUBLIC);
The error is :
javassist.CannotCompileException: [source error] fatal
[source error] fatal
at javassist.CtNewMethod.make(CtNewMethod.java:78)
at javassist.CtNewMethod.make(CtNewMethod.java:44)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851652#3851652
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851652
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user