[kaffe] ClassLoader isn't working like I expected
robilad at yahoo.com
Tue May 13 09:19:01 PDT 2003
thanks for the bug report. The problem comes from kaffe's ClassLoader
implementation. It uses the bootstrap class loader to load t, so it returns
null as it's ClassLoader. Bang.
Unfortunately, I don't think there is an easy fix. I've played with improving
kaffe's class loading before with only limited success so far. I'm putting some
hope in Helmer's next bootstrap/application class loader separation patch.
--- Tom Epperly <tepperly at llnl.gov> wrote:
> My code uses getClass().getClassLoader().getResourceAsStream() to get an
> InputStream for the DTD files. This approach works with Sun's JVM, and it
> doesn't work with the Kaffe that I installed from Debian x86 unstable
> distribution. I've included a simple test case below to demonstrate the
> ClassLoader loader = t.getClass().getClassLoader();
> InputStream in = loader.getResourceAsStream("dtd/SIDL.dtd");
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
More information about the kaffe