"chiba" wrote : The JVM dose not allow us to dynamically reload a class. | If what you need is the dynamic reloading, it is impossible with Javassist (or | maybe any other tools).
yes I need to load modified class in the same progam at runtime, I supose we have two ways of using Javassist - save class files and use it later or modify and use in runtime. Am I wrong? AFAIK Jboss use it, Tapestry, Aspektwerkz and you say it is impossible? maybe I didn't wrote it clearly not to _reload_ but _load_ modified class. just use it at once after modification anonymous wrote : | What you can do is to load a modified class B with a new copy of class A so that they belong to a separate namespace (i.e. a class loader). | and that's the point. I have no idea, no sample code, nothing to make me understand how to do it. When I change class, do getClass and try to cast it I got exception (suppose class was loaded before and its hash is diffrent, causing class cast exception). anonymous wrote : | The JVM's debugger interface provides limited ability for dynamic reloading. It might be helpful. let's assume I have simple program simplest as possible and I do my job in Eclipse IDE. I want only to change anything in class A and use it _in the same program_ of course use it as a new class with new bytecode. How? I don't believe Mr. Chiba there's no way to achieve it :) please help me View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842440#3842440 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842440 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
