Log in to follow, share, and participate in this community.
Thread Array access
Array accessHi Chiba, Just got back from meeting everybody in Las Vegas. A new thing a lot of people need is interception of access to elements in arrays. http://jira.jboss.com/jira/browse/JBAOP-265 I think this could work sim...
Thread Question about instrumentation with javassis
Question about instrumentation with javassishow are u all i am asking about how could i get the number of hits for each line(number of times that this line executed ) in the byte code thanks for ur interest
Thread insertBefore and replacing support for throw.
insertBefore and replacing support for throw.Hi, I've been looking the source code of javassist in order to add insertBefore and replacing support for the throw operation. I've found that throw is considered a statement but I can't find a way to use it like a C...
Local variable accessI would need support for local variable access from an ExprEditor; I've seen a message about that in 2005 from 'gpothier'. What is the status of that work? Is that available anyhow? Thx, _marc
add a new annotation problemHi all, I am working on ejb3 project. Ejb3 always use some annotations such as "@Stateless","@Remote", "@RemoteBinding" and etc. Now I want to use javassist to generate these annotations. But have some problem. Can y...
Bug in CodeGen classHi! I found a bug in getArrayWriteOp method!! There is not treatment for a write operation on a array of type short. This simple line solve the problem: case SHORT : return SASTORE; thanks
Thread jbossall-client.jar cause exception with tomcat
jbossall-client.jar cause exception with tomcatHi all. I want to use jbossall-client.jar of version 4.0.3. When I try to connect to the jboss application server (through tomcat) I get the following exception: javax.management.MBeanException: nested exception is I...
"Illegal exception table range" preverify errorHi, I encountered the following error: Error preverifying class Test VERIFIER ERROR Test.open()V: Illegal exception table range after trying to copy a constructor body to a new method with the following instruction...
Thread how to put image file on client machine through JBOSS
how to put image file on client machine through JBOSSI need to imlement the functionality like google map on website, where my server is JBOSS server. We used the newest technology SVG(scalable vector graphics) which doesn't loose the image quaility on increasing the si...
Serious bug foundHello, I found a serious bug inside the Javassist code that can lead to the changes of the CtClass interface. How can I discuss it and how I submit it back. Thank you
Proxy serializationI'm trying to use Javassist proxy generation instead of JDK proxy generation, so I can change the classname generated (among other things) (see EJBTRHEE-485). Two problems: 1. Javassist proxies are not serializable (...
Thread rel 3.1 - Problem with CtBehavior#getParameterAnnotations
rel 3.1 - Problem with CtBehavior#getParameterAnnotationsThe documentation of CtBehavior#getParameterAnnotations only states "@return an array of annotation-type objects". It doesn't mention what is returned when none of the parameters is annotated. However, most of the in...
Why an abstract class generated?I try to create a class BasicType public class BasicType implements java.io.Serializable{ String _ISBN; public java.lang.String getISBN(); public void setISBN(java.lang.String); public BasicType(); } But I always ge...
Generated class extending a generic classIs it possible to generate a (non-generic) class through Javassist that extends an abstract, generic class or interface? How can this be achieved?
rel 3.1 - Problem with CtMethod#equals(release 3.1) The implementation of class CtMethod regards a seed and its redefinitions as equals. This can cause problems when their CtMethod objects are stored in a Collection or used as keys in a Map. It would be ...
Thread Expand handling of ProxyFactory getClassLoader selection pro
Expand handling of ProxyFactory getClassLoader selection proAs mentioned in: http://jira.jboss.com/jira/browse/JASSIST-18 the current selection of the ProxyFactory.getClassLoader does not deal with the case of the proxy superclass class loader being null. This is seen when on...
Thread Changing the Exception of MethodHandler to Throwable
Changing the Exception of MethodHandler to ThrowableThe exception throws clause of the javassist.util.proxy.MethodHandler.invoke method should really be a Throwable rather than an exception, otherwise the basic implementation of delegating to another object via reflect...
Proxying a class for O/R mapping frameworkI'm in the process of building in EJB 3.0 persistence support for an open source persistence product (http://hydrate.sourceforge.net) that I support and was looking to use javassist to do the necessary bytecode manipu...
CtClass.stopPruning signature changeThe CtClass.stopPruning method had an incompatible change between 1.59 and 1.60:
public void stopPruning(boolean stop) {}
public boolean stopPruning(boolean stop) { return true; }
that results in the following...
Changes to annotation processingI have made two changes to the annotation processing, such that the annotations can be used in JDK1.4 after pruning. 1) Keep default annotation and parameter annotation data after pruning. I still to test that all of...