This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
bug in compilation
- From: Pinte_Stanislas at emc dot com
- To: kawa at sources dot redhat dot com
- Date: Tue, 28 May 2002 08:43:25 -0400
- Subject: bug in compilation
hello,
the following declaration makes no problem when invoked in the current scm
file, but if I
load a file that declares it in a compiled module, using
(require <com.script.scripting>)
it gives an error:
(I am using kawa-1.6.98.jar)
#|(---:4|# #|(---:5|# #|(---:6|# #|(---:7|# #|(---:8|# #|(---:9|#
#|(---:10|# #|kawa:11|# java.lang.VerifyError: (class:
com/filepool/analyzer/script/utils, method: makeEventDaoStatusBig signature:
(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;)
Expecting to find object/array on stack
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at gnu.bytecode.ObjectType.getReflectClass(ObjectType.java:54)
at gnu.bytecode.ClassType.getModifiers(ClassType.java:69)
at gnu.bytecode.ClassType.isInterface(ClassType.java:171)
at gnu.bytecode.ClassType.getSuperclass(ClassType.java:109)
at gnu.bytecode.ClassType.implementsInterface(ClassType.java:788)
at gnu.bytecode.ClassType.isSubclass(ClassType.java:806)
at gnu.bytecode.ClassType.compare(ClassType.java:834)
at gnu.bytecode.Type.isSubtype(Type.java:290)
at kawa.standard.require.scanForDefinitions(require.java:133)
at kawa.lang.Translator.scan_form(Translator.java:512)
at kawa.lang.Translator.scan_body(Translator.java:544)
at kawa.standard.Scheme.makeModuleExp(Scheme.java:839)
at gnu.kawa.lispexpr.LispInterpreter.parse(LispInterpreter.java:33)
at kawa.Shell.run(Shell.java:209)
at kawa.Shell.run(Shell.java:180)
at kawa.Shell.run(Shell.java:167)
at
com.filepool.analyzer.ScriptingServerExtension$SocketRepl.apply0(ScriptingSe
rverExtension.java:141)
at gnu.mapping.Future.run(Future.java:61)
Here is what the source of the <com.script.scripting> compiled module:
(define (make-event-dao param1 param2 param3)
(let ((event-dao (make <com.mycompany.Object>)))
(invoke event-dao 'Work
param1
param2
param3)
event-dao))
note: com.mycompany.Object is a valid java object, found in the classpath,
and having a zero-param constructor, as well as a 3 param Work(...) method.
Any idea?
It seems that someone met the same here, and it is supposed to be
fixed...http://sources.redhat.com/ml/kawa/2000/msg00353.html
Stanislas Pinte - Associate Software Engineer.
Phone: +32-(0)15-401.371
Fax: +32-(0)15-401.400
Address: Schaliënhoevedreef 20i, B-2800 Mechelen, Belgium