Java Soft broke this function in JDK 1.1 (some time after JDK113, I
think, if memory serves me correctly). I think it is fixed in JDK 1.2,
as I raised this a JavaSoft bug 4138221, which I CAN'T LOOK AT, since it
somehow got logged as a 'security' bug.
Rob
Bernd Wengenroth wrote:
> Hello,
>
> I want to load class-files with the
> ClassLoader.getResourceAsStream( String )-methode.
>
> i.e. xxx.getResourceAsStream( "package/myClass.class" );
>
> It's works fine on files without a ".class"-postfix.
> But files with this prefix are not opened
> (the methode reports null).
> If i copy the same file to the same directory, but
> without the postfix, the stream is returned as expected.
>
> Any hints ?
>
> Bernd Wengenroth
>
> --
> --------------------------------------------------------
> Bernd Wengenroth
> IoS Gesellschaft für innovative Softwareentwicklung mbH
>
> Donatusstraße 127-129 WWW: http://www.IoS-online.de
> 50259 Pulheim email: [EMAIL PROTECTED]
> Tel: 02234 / 986434 Fax: 02234 / 986433
--
Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363