[kaffe] Bug Report: rmic throws NullPointerException

Julio M. Merino Vidal jmmv84 at gmail.com
Sun May 15 09:13:58 PDT 2005

Hi all,

I'm using Kaffe 1.1.5 on a Debian system running on a iBook.  First of
all, congratulations to all developers for this great implementation
(really, because Sun does not provide any binaries for Linux/powerpc).

However, I have a problem with rmic.  When I run it to parse some class
of my own, it raises a NullPointerException with no further information.
I've narrowed down the problem to rmic's Compiler.java, as it tries to
use a nonexistent package name to find Compile_* classes.

The following patch solves it for me:

--- libraries/javalib/gnu/classpath/tools/rmi/rmic/Compiler.java.orig
2005-04-06 00:06:39.000000000 +0000
+++ libraries/javalib/gnu/classpath/tools/rmi/rmic/Compiler.java
@@ -72,5 +72,6 @@ public abstract class Compiler
   protected String dest;
   /** Class prefix used when trying to find instance.  */
-  private static final String classPrefix =
+  private static final String classPrefix =
+    "gnu.classpath.tools.rmi.rmic.Compile_";

It'd be great if it was fixed mainstream (assuming this is the correct


Julio M. Merino Vidal <jmmv84 at gmail.com>
The NetBSD Project - http://www.NetBSD.org/

More information about the kaffe mailing list