Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-23 Thread Kevin F
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Bodden Sent: Tuesday, 23 October, 2007 14:30 To: aspectj-users@eclipse.org Subject: Re: [aspectj-users] Dynamically modifying Java class structure I am probably not the most competent person but I am

RE: [aspectj-users] Dynamically modifying Java class structure

2007-10-23 Thread Walla, Marcus
Regards Marcus Walla >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Eric Bodden >Sent: Tuesday, 23 October, 2007 14:30 >To: aspectj-users@eclipse.org >Subject: Re: [aspectj-users] Dynamically modifying Java class structure > > >

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-23 Thread Eric Bodden
I am probably not the most competent person but I am quite sure that it's not more than: myClassLoader = null; A class loader and all its loaded classes can be GC'ed if the class loader can be GC'ed, IIRC. Eric On 23/10/2007, Hendrik Gani <[EMAIL PROTECTED]> wrote: > Kevin F wrote: > > Cool.. I

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-22 Thread Hendrik Gani
Kevin F wrote: Cool.. I didn't realize the Sun JVM allowed that much flexibility nowadays. I only knew you could unload an entire ClassLoader which would unload all the classes that ClassLoader had loaded. If you don't mind me asking (since it's a bit off topic), how do you unload a ClassLoade

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-20 Thread Kevin F
Cool.. I didn't realize the Sun JVM allowed that much flexibility nowadays. I only knew you could unload an entire ClassLoader which would unload all the classes that ClassLoader had loaded. On Oct 18, 2007, at 11:07 AM, Dean Wampler wrote: On Oct 17, 2007, at 8:48 AM, Hendrik Gani wrote

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-18 Thread Dean Wampler
On Oct 17, 2007, at 8:48 AM, Hendrik Gani wrote: ... Hi guys, In my case, my program doesn't need to be able to swap the loaded class at runtime, but just out of curiosity, is it really possible to unload a class in Java as mentioned by Kevin? Apparently it is: http://www.zeroturnaroun

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-18 Thread Hendrik Gani
Eric Bodden wrote: Hi, Hendrik. What do you mean by "dynamically"? Do you mean "at runtime"? If so, that's impossible to do... Eric Hi Eric, thanks for the reply. Yes, by "dynamic", I mean weaving/modifying a class whose name is only known at runtime. Hendrik On 16/10/2007, Hendrik

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-18 Thread Hendrik Gani
>> Many years ago before I knew about AJ, I created a program that >> writes a Java program, invokes the compiler, then uses reflection to >> load the created program. Couldn't he do something similar and use >> AJ to simplify the modification process? Admittedly, he might need >> to start a chi

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-17 Thread Hendrik Gani
Eric Bodden wrote: Hi, Hendrik. What do you mean by "dynamically"? Do you mean "at runtime"? If so, that's impossible to do... Hi Eric, Yes, by "dynamic", I mean weaving/modifying a class whose name is only known at runtime. Hendrik ___ aspectj-use

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-17 Thread Eric Bodden
Hi, Kevin. > Many years ago before I knew about AJ, I created a program that > writes a Java program, invokes the compiler, then uses reflection to > load the created program. Couldn't he do something similar and use > AJ to simplify the modification process? Admittedly, he might need > to start

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-17 Thread Kevin F
Why is it impossible? Many years ago before I knew about AJ, I created a program that writes a Java program, invokes the compiler, then uses reflection to load the created program. Couldn't he do something similar and use AJ to simplify the modification process? Admittedly, he might need

Re: [aspectj-users] Dynamically modifying Java class structure

2007-10-16 Thread Eric Bodden
Hi, Hendrik. What do you mean by "dynamically"? Do you mean "at runtime"? If so, that's impossible to do... Eric On 16/10/2007, Hendrik Gani <[EMAIL PROTECTED]> wrote: > Hi, > > I am not sure whether the mailing list is an appropriate place to ask > the following questions, but I could not find t