javassist.bytecode.BadBytecode: cannot find [BHello, I have a problem starting up our application with the latest jboss-5.1.0.CR with enableLoadTimeWeaving=true where javassist throws the exception from the subject header during instrumentation of our classes. W...
Thread VerifyErrors related to goto byte code instruction / switch-
VerifyErrors related to goto byte code instruction / switch-I encountered several issues related to illegal targets of jumps or branches: https://jira.jboss.org/jira/browse/JASSIST-79 and https://jira.jboss.org/jira/browse/JASSIST-80. These issues seem to be related to switch...
reflection and java.lang.VerifyErrorI'm using javassist to add some functionality to a third-party program. I'm trying to insert some code into the constructor of my target class which calls methods elsewhere in the program to set fields in the target ...
Thread VerifyError when instanciating a generated class (Bad type i
VerifyError when instanciating a generated class (Bad type iDear all, I'm using javassist to generate access class for reflection, following this tutorial: http://www.ibm.com/developerworks/java/library/j-dyn0610/index.html?S_TACT=105AGX02&S_CMP=EDU Everything works fine...
Thread Can JavaAssist change a static final field?
Can JavaAssist change a static final field?Hi, I'm using ClassFile.renameClass as in jbossretro in order to replace instances of a class in a jar to my own class. This is what I wants to achieve: Some classes are using class A: public class A { .... } I've cre...
Thread attempted duplicate class definition for name:
attempted duplicate class definition for name:Hi, I would like to know it is possible to modify a class that has been already loaded. My test case : MyClass myClass = new MyClass();
ClassPool pool = ClassPool.getDefault();
CtClass cc = pool.get("MyClass");
//m...
Thread Adding member value with no name to annotation
Adding member value with no name to annotationHi, This is what I'm trying to achieve:
...
@Entity
@IdClass(MyPKClass.class)
public class MyClass {
...
}
This is a fully javassist generated class, I am able to annotate with the @Entity, even add member ...
Thread Method Paramater annotation not seen on Scala class - but vi
Method Paramater annotation not seen on Scala class - but viHello, I'm trying to use Tapestry 5.0.18 with Scala (2?7?3 and 2.8.0 nightly). It uses method parameter annotations that seem to not be found by Javassist (tested with 3.8, 3.9 and 3.10 GA). The annotation is a java...
Thread javassist based hibernate proxies on remote machine with net
javassist based hibernate proxies on remote machine with netHi all, I am working on a swing / web application bridge for a swing client. As a communication layer I am using something I would call RMI over HTTP (serialized class data is transfered through HTTP). The swing clie...
Retreiving timing informationHello, I would like to add timing information to a method. My current strategy is: * Copy the method in question to another method with a different name * Add a new method with the old name ** record current time at...
Gravel infoHi Everyone ! does anybody knows if there is a gravel user guide like rich-faces one ? i was unable to find examples or some kind of documentation about gravel and if it can be used together with facelets (that is: ...
Replace outgoing method callHi, Let's say I have a method M1 in class A that calls method M2 in class B. I would like to replace M1's call to M2 without modifying the byte-code of B (because I cannot byte-code manipulate this class, for example...
Javassist 3.9I noticed that Javassist 3.9 is available for download. I'm frustrated, as usual, that there were NO RELEASE NOTES. Why was there not an announcement? What changes are in 3.9?
Thread Thank you and Help us learn how Feature Requests R gathered
Thank you and Help us learn how Feature Requests R gatheredThank you to everyone who completed the survey! We’re getting great feedback. If you haven’t already participated, please take a few moments to complete the survey located at the ...
serialVersionUID issueHi all, I have released a small memory leak detector on http://www.qarks.com web site, which is using javassist. Despite using the serialVersionUID helper, recent tests showed a remaining issue with some serializable...
Thread Javassist class loader vs. Apache Commons logging
Javassist class loader vs. Apache Commons loggingHi all, I want to instrument an application that uses the Apache Commons logging component. I use the Javassist class loader and have added my own translator. However, the logging library seems to rely on the class l...
Using Javassist on J2ME MIDletsI would like to use Javassist to modify existing JAD/JAR files for J2ME MIDlets. (Yes I will have permission from the vendor to do this - all the legal considerations are taken care of). Basically I want to display so...