This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
help creating instance of nested class
- From: John Whittaker <john dot whittaker at sbcglobal dot net>
- To: kawa at sourceware dot org
- Date: Tue, 29 Jan 2008 10:43:01 -0800 (PST)
- Subject: help creating instance of nested class
Hi,
I am trying to experiment with the javolution library
(www.javolution.org). I have installed its default
jar file and it seems to work fine when various tests
are run against it with the java command line.
However, from Kawa (1.9.3) I'm getting an error which
I do not understand. I wonder if someone can point
out what's going on here. Here is an example:
#|kawa:1|# (<javolution.io.Struct$Unsigned16>:new )
<unknown>: warning - cannot convert literal (of type
java.lang.Class) to gnu.bytecode.ClassType
#|kawa:2|# Invalid parameter, was: java.lang.Class
cannot be cast to gnu.bytecode.ClassType
java.lang.ClassCastException: java.lang.Class cannot
be cast to gnu.bytecode.ClassType
at atInteractiveLevel$1.run(stdin)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:306)
at kawa.Shell.run(Shell.java:275)
at kawa.Shell.run(Shell.java:186)
at kawa.Shell.run(Shell.java:167)
at kawa.repl.main(repl.java:870)
Thanks in advance,
John Whittaker