ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: cvs commit: jakarta-ant build.xml
Date Mon, 20 Aug 2001 03:34:34 GMT
> From: Stephane Bailliez [mailto:sbailliez@imediation.com]
>
> btw...
>
> I didn't go into a debug session but....
> I don't think it is normal that:
>
> "/META-INF/services/...." does not work while "META-INF/services/..." does
>
> AntClassLoader issue ? testcase needed :)
>

I do not believe this is a bug. It is the Class.getResourceAsStream() method
that understands the leading slash and it strips it away before forwarding
to the classloader. Thus, these two calls, though having the same name, have
slightly different semantics.

Checkout the resolveName method in Class.java in the JDK source.

Conor


Mime
View raw message