public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: kawa <kawa@sourceware.org>
Subject: Duplicate entry in InnerClasses attribute in class file
Date: Sat, 3 Dec 2022 18:12:00 +0100	[thread overview]
Message-ID: <CAMFYt2YL3JmrC4hCk5XoWR0eFT1NRWb3+Lnrw2LZtKNPP4KewA@mail.gmail.com> (raw)

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?

                 reply	other threads:[~2022-12-03 17:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMFYt2YL3JmrC4hCk5XoWR0eFT1NRWb3+Lnrw2LZtKNPP4KewA@mail.gmail.com \
    --to=godek.maciek@gmail.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).