> From: Stephane Bailliez [mailto:[EMAIL PROTECTED] > > 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
