ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: DO NOT REPLY [Bug 35436] - AntClassLoader returns false loader in getParent()
Date Tue, 05 Sep 2006 14:25:34 GMT
No, one would have to change the class itself, not
the use of the class. Well.., we could do this, but
it would mess up the JDK rt.jar file.....

Users call classloader.getResources() to get the resources.
As ClassLoader.getResources() is final in java 1.4 (but not
in java 5), AntClassLoader cannot have a getResources() method.
It has to fake the getResources by not having a parent as seen
by ClassLoader.getResources().

Peter

On 9/5/06, bugzilla@apache.org <bugzilla@apache.org> wrote:
>
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=35436>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
> INSERTED IN THE BUG DATABASE.
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=35436
>
>
>
>
>
> ------- Additional Comments From gudnabrsam@yahoo.com  2006-09-05 14:01
> -------
> (In reply to comment #2)
> > The change had to be reverted as it did work
> > for java 1.4 and lower.
> >
> > In java 5, ClassLoader.getResources() is protected,
> > in java 1.4, it is private.
> >
>
> Can Dale Anson's "object rape" technique (see ac Variable task) be used
> here?
>
> --
> Configure bugmail:
> http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message