ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Kevin A. Burton)
Subject Re: [PROPOSAL] 'redefine' task that uses JDK 1.4/JPDA class redefinition
Date Mon, 04 Feb 2002 07:54:12 GMT
Hash: SHA1

David Jencks <> writes:

> While this is certainly an interesting proposal, I don't think it is ready to
> replace application server class management/application redeployment.

... of course... not right now :)

JPDA in JDK 1.4 doesn't not support defining new methods.  This sucks.
hopefully this will be fixed soon.

> --Application server class management usually gives you the ability to remove
> classes entirely from at least part of the classloader picture.

Have you ever looked into the mechanisms that applications use to reload.??
Very ugly stuff.  At least with JPDA I feel WAY more confident.

... and no... you can't REMOVE classes but neither can anything else.
Application server reloaders can't remove a class either.  It is just defined in
an orphaned ClassLoader.

With this mechanism the class will remain in the same classloader but won't be

> --It does not appear possible from a quick glance to be able to change
> resources loaded by a classloader.


Hm... I put that on the TODO list.  It is a good point.  I can directly invoke
methods on the remote ClassLoader via ObjectReference.invoke.  It does appear
that you can define classes that aren't available otherwise.

I could probably find out a way to include resources.


- -- 
Kevin A. Burton (,, )
             Location - San Francisco, CA, Cell - 415.595.9965
        Jabber -,  Web -

For evil to win, is for good men to do nothing.
       - Winston Churchill.
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at:


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message