[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #45313] Multiple libraries in one file
From: |
Helmut Eller |
Subject: |
[Bug-kawa] [bug #45313] Multiple libraries in one file |
Date: |
Sat, 13 Jun 2015 06:29:22 +0000 |
User-agent: |
Opera/9.80 (X11; Linux i686) Presto/2.12.388 Version/12.16 |
URL:
<http://savannah.gnu.org/bugs/?45313>
Summary: Multiple libraries in one file
Project: Kawa
Submitted by: ellerh
Submitted on: Sat 13 Jun 2015 06:29:21 AM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When using this file
(define-library (a b)
)
(define-library (a)
(import (scheme base)
(a b)))
like so:
rm -rf classes/
kawa --version --r7rs -d classes -C a.scm
jar cf a.jar -C classes .
java8 -cp /scratch/kawa/:a.jar kawa.repl --version --r7rs -e '(import (a))'
Kawa produces this error:
Kawa 2.0.1 (revision 8523M)
Copyright (C) 2015 Per Bothner
(compiling a.scm to a)
Kawa 2.0.1 (revision 8523M)
Copyright (C) 2015 Per Bothner
exception while initializing module a
at gnu.expr.ModuleContext.findInstance(ModuleContext.java:85)
at gnu.expr.ModuleContext.findInstance(ModuleContext.java:57)
at gnu.expr.ModuleInfo.getInstance(ModuleInfo.java:258)
at kawa.standard.require.find(require.java:126)
at atInteractiveLevel$1.run(<string>:1)
at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:293)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:212)
at kawa.Shell.run(Shell.java:291)
at kawa.Shell.run(Shell.java:203)
at kawa.repl.processArgs(repl.java:267)
at kawa.repl.main(repl.java:793)
Caused by: java.lang.InstantiationException: a
at java.lang.Class.newInstance(Class.java:418)
at gnu.expr.ModuleContext.findInstance(ModuleContext.java:79)
... 10 more
Caused by: java.lang.NoSuchMethodException: a.<init>()
at java.lang.Class.getConstructor0(Class.java:2971)
at java.lang.Class.newInstance(Class.java:403)
... 11 more
[Exit 255]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45313>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #45313] Multiple libraries in one file,
Helmut Eller <=