|
From: | Helmut Eller |
Subject: | [Bug-kawa] [bug #32223] Subclassing without default constructor |
Date: | Mon, 24 Jan 2011 11:24:36 +0000 |
User-agent: | Opera/9.80 (X11; Linux i686; U; en) Presto/2.7.62 Version/11.00 |
URL: <http://savannah.gnu.org/bugs/?32223> Summary: Subclassing without default constructor Project: Kawa Submitted by: ellerh Submitted on: Mon 24 Jan 2011 11:24:35 AM GMT Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: With this Java class: package foo; public class Foo { public Foo (int i) { } } And this Scheme class: (define-simple-class bar (foo.Foo) ((*init* (i int)) (invoke-special Foo (this) '*init* i))) Note that Foo is in a non-default package. I get this error: > kawa --version -C y.scm Kawa 1.11 (revision 0:6882M) Copyright (C) 2009 Per Bothner (compiling y.scm to y) y.scm:4: internal error while compiling y.scm java.lang.Error: passing Uninitialized<bar> as parameter at gnu.bytecode.CodeAttr.emitInvokeMethod(CodeAttr.java:1491) at gnu.bytecode.CodeAttr.emitInvokeVirtual(CodeAttr.java:1538) at gnu.expr.ApplyExp.compile(ApplyExp.java:394) at gnu.expr.ApplyExp.compile(ApplyExp.java:111) at gnu.expr.Expression.compileNotePosition(Expression.java:156) at gnu.expr.Expression.compileWithPosition(Expression.java:142) at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1619) at gnu.expr.ClassExp.compileMembers(ClassExp.java:569) at gnu.expr.ClassInitializer.<init>(ClassInitializer.java:16) at gnu.expr.ClassExp.compileSetField(ClassExp.java:806) at gnu.expr.SetExp.compile(SetExp.java:167) at gnu.expr.Expression.compileNotePosition(Expression.java:156) at gnu.expr.Expression.compileWithPosition(Expression.java:142) at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1619) at gnu.expr.Compilation.generateBytecode(Compilation.java:2015) at gnu.expr.Compilation.process(Compilation.java:1893) at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:305) at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:290) at kawa.repl.compileFiles(repl.java:783) at kawa.repl.processArgs(repl.java:412) at kawa.repl.main(repl.java:827) [Exit 255] _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?32223> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |