[Kaffe] bug in Class.getResourceAsStream() method.

Archie Cobbs archie at whistle.com
Tue Dec 22 11:16:51 PST 1998

Moses DeJong writes:
> I posted a message about a kaffe bug but I did not hear from
> anyone about a fix. This makes me think that perhaps I was
> not very clear in my first message so I am going to ask again.
> Here is a short bit of code that works under a Sun JVM but fails
> under kaffe.
> import java.io.*;
> public class easy {
>   public static void main(String[] argv) throws Exception {
>     InputStream stream = Class.class.getResourceAsStream("/easy/easy.msg");
>     if (stream == null) {
>       System.out.println("resource not found");
>     }
>   }
> }

I posted a message about this yesterday. In short, did you try
the latest kaffe snapshot? I believe this bug has been fixed
since 1.0b3.


Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com

More information about the kaffe mailing list