Log in to follow, share, and participate in this community.
Thread Generating a method with Generics
Generating a method with GenericsHi, For the project I am workking on I need to generate a class like this. class Foo{ pubic void doSomething(List<String> l){ } } But this falis whe...
Thread Matching and replacing a sequence of bytecodes/instructions
Matching and replacing a sequence of bytecodes/instructionsHi, I have the following problem to solve: I need to detect assignments to a specific field, where the right-hand side is also of a specific form, e.g. it is the same field (or the field of the same sp...
Thread Javassist, PowerMock and Java 7 ... bad combination
Javassist, PowerMock and Java 7 ... bad combinationHello, ( sorry for the "repost"; created an article before; hopefully that one was successfully deleted ... so here comes the "discussion" version ) we are using JUnit & powermock (and easymock) to...
Thread How to manipulate aload instruction in Javassist?
How to manipulate aload instruction in Javassist?Hi, Can I get the object reference of "aload" instruction in Javassist? or How to manipulate aload instruction in Javassist? Any suggestions? Thank you in advance Young
Thread how to change type of a local variable in javassist
how to change type of a local variable in javassistHi, I am working on removing dependency in test suits where I need to change type of some local variables (to object). How can I do that? I did not find api method in javassist that allows manipulation of local varia...
Thread Problem with GluonJ and javassist.gluonj.util.Loader
Problem with GluonJ and javassist.gluonj.util.LoaderI have a problem with part of GluonJ library: javassist.gluonj.util.Loader I have this code: Loader loader = new Loader(Class.class.getClassLoader(), new String[0]); Cla...
Thread Annotation checking in OSGi environment causes troubles
Annotation checking in OSGi environment causes troublesHi, First I want to say that javassist is a really great bytemanipulation framework and it works really really good. I use javassist in an OSGi environment to do some class enhancements in runtime with weaving...
Thread ClassCastException when modifiying JOptionPane behaviour
ClassCastException when modifiying JOptionPane behaviourI'm triying to modify the JOptionPane behaviour to log all the user responses. If do it when the class is loaded with HotsSapper is OK, but i can't do it whith the HotSwapper because the application it's launched by J...
Thread Interception of return statement with Javassist
Interception of return statement with JavassistHello, Is there a way to intercept the return statement of a method body using the Javassist source-level API? I'd like to know which object is returned by a method, and insert some code before the return sta...
PowerMockito jvisualvm profiler throws javassist.NotFoundExceptionI have documented this issue here: http://code.google.com/p/powermock/issues/detail?id=370 I'm trying to use jvisualvm on a junit test that uses PowerMockito to mock out a new() for a class. When I run ...
Javassist-3.16.0-GA LocalVariableTable invalid length exceptionI'm using PowerMock's @PrepareForTest annotation, specifying my own class, DbUtil's QueryRunner.class, DbUtil's ResultSetHandler.class and DataSource.class. Both my own class and QueryRunner.class cause javassis...
Thread how to load external property file in JBOSS
how to load external property file in JBOSSMy application is using websales.property file ...where should i place the file so that this file can be loaded in my application