javassist
Which library to choose for generating classes at runtime
I need to extend classes at runtime, particularly to detec开发者_如何学JAVAt changes made to classes state. If it\'s possible I would like to be able to detect changes by intercepting field assignment[详细]
2023-03-14 04:54 分类:问答how to calculate the count parameter to call an interface method in java?
I\'m using javassist and I generate interfaces and other stuff at loadtime/runtime. To call an interface\'s method (with the bytecode invokeinterface) we have to provide several parameters: indexbyte[详细]
2023-02-19 23:19 分类:问答Hibernate custom proxy generator - Stop equals() from initializing a lazy proxy
I have entity classes and these entity classes implement their own equals() function, which just compares the Ids of the classes. Sadly, invoking equals() on a Hibernate proxy initializes it, which is[详细]
2023-02-15 14:50 分类:问答Is it possible to modify the bytecode and save it with javassist?
All the references I\'ve found on the web says the byte开发者_如何转开发code can be modified at runtime, but I don\'t seem to find if that modified bytecode could replace the original.[详细]
2023-02-15 01:29 分类:问答Verify Error: Inconsistent args_size for opc_invokeinterface
I have been trying to generate some dynamic codes (Using Javassist) but program fails at a certain point when involving a double array or float array. The code is as follows[详细]
2023-02-04 09:57 分类:问答Hibernate proxy object not working for superclass methods
We have a web application that uses Hibernate. After upgrading the codebase to Hibernate 3.6 (from 3.3.2) I\'ve found that the proxy data objects generated by Hibernate only return the correct value f[详细]
2023-02-04 04:09 分类:问答Constructor.newInstance() without knowing parameter sequence?
Take this code for example : public class User { private String username; private String password; protected User()[详细]
2023-01-30 17:54 分类:问答jsf-console 3.x on JBoss 6.x possible?
I\'m trying to move an application from JBoss 4.2.2 AS to 6.x AS. Right now I\'m trying to get jbpm 3.x running on the AS I have this pr开发者_如何学Pythonoblem when trying to upload a .par file to th[详细]
2023-01-21 05:53 分类:问答introspection - table name of an object managed by Hibernate (JavassistLazyInitializer)
I want to get through introspection the table name of an object managed by Hibernate (in lazy). my object contains \"org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer\" in the property ha开[详细]
2023-01-17 16:37 分类:问答Javassist Vs. Java Compiler API
In a project I\'m currently working on, I need to generate Java classes at runtime. I also need to avoid using reflection when using these classes later on.[详细]
2023-01-10 13:52 分类:问答