Usage of not-allowed java preserved keywords in jar-file-names breaks usage of jzy3d

8 views
Skip to first unread message

Oliver...@orat.de

unread,
Aug 13, 2024, 8:11:59 AM8/13/24
to Jzy3d
Hi,
I run into the following strange bug which totally blocks usage of jzy3d:

jzy3d creates jar-files with "native" in the filename. If these jar-files are included in the classpath exceptions as follow are thrown, e.g. :

java.lang.module.FindException: Unable to derive module descriptor for /home/oliver/JAVA/PROJECTS/DSL4GeometricAlgebra/DSL4GA_Standalone/target/modules/jzy3d-native-jogl-swing.jar
Caused by: java.lang.IllegalArgumentException: jzy3d.native.jogl.swing: Invalid module name: 'native' is not a Java identifier

I assume the that usage of any reserverd keywords, see

https://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.9

produces similar problems.

**Reproducibility**
The principal problem is described also e.g.

https://github.com/oracle/graal/issues/4620

or

https://stackoverflow.com/questions/46501388/unable-to-derive-module-descriptor-for-auto-generated-module-names-in-java-9

Steps to reproduce the behavior if needed:

In my own project the issue can be repruces by

invocation of ./ga inside the main folder of

https://github.com/MobMonRob/DSL4GeometricAlgebra

Clone the repro, build it and than execute ./ga inside the main folder.

The problem is a strange blocker for me to use jzy3d. I am wondering that nobody else has reported the problem. If I understand correctly since Java9 the listed keywords are not allowed to use in the jar file names.

best regards
Oliver

Martin

unread,
Aug 13, 2024, 2:38:31 PM8/13/24
to Jzy3d
Hi Oliver,
Thanks for reporting the issue with details. I continued the discussion on the issue list on Github.
Regards,
Martin

Reply all
Reply to author
Forward
0 new messages