Patch: RFA for 4.0: use system class loader

Per Bothner per@bothner.com
Thu Apr 14 22:30:00 GMT 2005


Tom Tromey wrote:
> This patch addresses the problem Per is seeing with Kawa.

Not really ...

> Finally, I tested it against kawa, which is where the problem was
> discovered.

It now gets further.  Doing a 'make check':

../bin/kawa-bin -C ./module1.scm
(compiling ./module1.scm)
../bin/kawa-bin -C ./module1a.scm
(compiling ./module1a.scm)
../bin/kawa-bin -C ./module2.scm
(compiling ./module2.scm)
CLASSPATH=..:. gcj -C -g -d . MyDate.java MyTimestamp.java
../bin/kawa-bin -C ./module3.scm
(compiling ./module3.scm)
../bin/kawa-bin -C ./classes1.scm
(compiling ./classes1.scm)
CLASSPATH=..:. gcj -C -g ./SimpleB.java -d .
CLASSPATH=$CLASSPATH \
../bin/kawa-bin -C ./classes2.scm
(compiling ./classes2.scm)
Internal error while compiling ./classes2.scm
java.lang.RuntimeException: no such class: classes1
    at gnu.bytecode.ObjectType.getReflectClass() 
(/tmp/unmodified/bin/.libs/libkawa.so.0.0.0)\
...

It fails in:
    reflectClass = Class.forName(getInternalName().replace('/', '.'),
		    false, getClass().getClassLoader());
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Java-patches mailing list