public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Duplicate entry in InnerClasses attribute in class file
@ 2022-12-03 17:12 Panicz Maciej Godek
  0 siblings, 0 replies; only message in thread
From: Panicz Maciej Godek @ 2022-12-03 17:12 UTC (permalink / raw)
  To: kawa

I have two entry points in GRASP
- one is for the client running in AWT,
and another one is for the client running in terminal:

https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/src/grasp-desktop.scm

https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/src/grasp-terminal.scm

They both work find, when run with appropriate scripts:

https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/grasp-desktop

https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/grasp-terminal

I wanted to merge them into a single entry point that would
decide whether the windowing system is available, and if so,
open AWT, and run in terminal otherwise.

So I wrote this module:

https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/src/grasp.scm

But when I try to run it - using the script
https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/grasp
- I get the following error:


Exception in thread "main" java.lang.ClassFormatError: Duplicate entry
in InnerClasses attribute in class file CharPainter
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:878)
	at gnu.bytecode.ArrayClassLoader.loadClass(ArrayClassLoader.java:127)
	at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:133)
	at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:155)
	at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:155)
	at gnu.expr.ModuleExp.evalModule1(ModuleExp.java:246)
	at kawa.Shell.run(Shell.java:293)
	at kawa.Shell.runFile(Shell.java:562)
	at kawa.Shell.runFileOrClass(Shell.java:485)
	at kawa.repl.processArgs(repl.java:298)
	at kawa.repl.main(repl.java:830)

What could be the reason for that error in this setup?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-03 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-03 17:12 Duplicate entry in InnerClasses attribute in class file Panicz Maciej Godek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).