define-class and define-simple-class don't work in the latest ver sions

Heineman, William P william_p_heineman@groton.pfizer.com
Fri Dec 20 10:36:00 GMT 2002


I posted this earlier but perhaps it got lost in the end of the year
shuffle. The example code for define-simple-class doesn't work with
kawa-1.6.97 (both the release jar as well as the latest CVS versions). In
particular attemping to extend the first class, <2d-vector>, in the class
<3d-vector> yields the following error:

java.lang.NoClassDefFoundError: $N2d$Mnvector
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
	at gnu.bytecode.ArrayClassLoader.loadClass(ArrayClassLoader.java:97)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at atInteractiveLevel.<clinit>(Unknown Source)
	at java.lang.reflect.Field.set(Native Method)
	at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:131)
	at gnu.expr.ModuleExp.eval(ModuleExp.java:43)
	at gnu.expr.ModuleExp.evalModule(ModuleExp.java:185)
	at kawa.Shell.run(Shell.java:77)
	at kawa.Shell.run(Shell.java:32)
	at kawa.Shell.run(Shell.java:19)
	at kawa.repl.main(repl.java:435)

I can also duplicate the error with a much simpler example, at the kawa
prompt type:

(define-simple-class <test-one> ())

followed by:

(define-simple-class <test-two> (<test-one>))

and you get the same error. Substituting define-class for
define-simple-class in the above examples will also yield the same result.


Cheers,

Willy

----------------------------------------------------------------------------
----
It was pity that stayed his hand.
"Pity I don't have any more bullets", thought Frito.
    -- Bored of the Rings, a Harvard Lampoon parody of Tolkien



LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.



More information about the Kawa mailing list