This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Compilation error: hyphenated class names again?
- From: Jocelyn Paine <popx at ifs dot org dot uk>
- To: kawa at sources dot redhat dot com
- Date: Wed, 21 Aug 2002 11:50:23 +0100 (BST)
- Subject: Compilation error: hyphenated class names again?
Using Kawa 1.6.99, I'm getting a compilation error: in this module
(module-name 'test)
(module-static #t)
(define-simple-class <srce-posn> () (line)
(col type: <int>)
)
(define-simple-class <srce-part> () (posn type: <srce-posn>)
(contents type: <object>)
)
(define (srce-part->srce-posn (sp <srce-part>)) <srce-posn>
(slot-ref sp 'posn)
)
when I compile, Kawa crashes, I think on the function:
[d:\kb7\mm3\general]java kawa.repl -d \. -P kb7.mm3.general. -C test.scml
(compiling test.scm)
test.scm:15:2: internal error while compiling -
caught: java.lang.NullPointerException
java.lang.NullPointerException
at kawa.standard.Scheme.getTypeFor(Scheme.java:925)
at gnu.kawa.reflect.SlotGet.compile(SlotGet.java:250)
at gnu.expr.ApplyExp.compile(Compiled Code)
at gnu.expr.ApplyExp.compile(ApplyExp.java:105)
at gnu.kawa.functions.Convert.compile(Convert.java:42)
at gnu.expr.ApplyExp.compile(Compiled Code)
at gnu.expr.ApplyExp.compile(ApplyExp.java:105)
at gnu.expr.Expression.compileWithPosition(Expression.java:72)
at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1333)
at gnu.expr.LambdaExp.compileAsMethod(Compiled Code)
at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:520)
at gnu.expr.SetExp.compile(SetExp.java:145)
at gnu.expr.Expression.compileNotePosition(Expression.java:82)
Jocelyn Paine
http://www.ifs.org.uk/~popx/
+44 (0)7768 534 091