Issue2924

classification
Title: module-info.class in root of jython-standalone-2.7.2.jar causes problems
Type: Severity: normal
Components: Versions: Jython 2.7.2
Milestone: Jython 2.7.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jeff.allen Nosy List: jeff.allen, pekka.klarck
Priority: Keywords:

Created on 2021-09-29.15:09:52 by pekka.klarck, last changed 2022-06-05.21:56:44 by jeff.allen.

Messages
msg13180 (view) Author: Pekka Klärck (pekka.klarck) Date: 2021-09-29.15:09:52
When trying to extend jython-standalone-2.7.2.jar using the `jar` command I get this error:

    jar: Package org.objectweb.asm.signature missing from ModulePackages class file attribute

It seems that the problem is caused by module-info.class file at the root of the jython-standalone-2.7.2.jar. It doesn't exist in jython-standalone-2.7.1.jar and with it I get no problems. Removing the file also fixes the problem with 2.7.2.

This seems to be dependent on Java version, environment or something similar. I'm not the only one in our project who has encountered this problem, but there are also others who aren't affected. For more details about our exact case see:
https://github.com/robotframework/robotframework/issues/3780

It's easy for us to remove the problematic module-info.class file when building our jar package. I hope someone from the Jython project could comment is doing that safe.
msg13216 (view) Author: Jeff Allen (jeff.allen) Date: 2022-05-23.06:14:58
See also https://github.com/jython/jython/issues/54.

It's not there by intention, and our JARs are not modular, so I think removing it should be safe.
msg13222 (view) Author: Jeff Allen (jeff.allen) Date: 2022-06-05.19:16:27
Honestly not sure this is the cause of https://github.com/jython/jython/issues/54. 

But they shouldn't be there. It's fairly easy to fix in the Ant build. (The files come from ASM JARs.)
msg13224 (view) Author: Jeff Allen (jeff.allen) Date: 2022-06-05.21:56:44
Closed in https://github.com/jython/jython/commit/a2441408444df46b7a35e39ec68302f32b1dbf1a
History
Date User Action Args
2022-06-05 21:56:44jeff.allensetstatus: open -> closed
versions: + Jython 2.7.2
messages: + msg13224
assignee: jeff.allen
milestone: Jython 2.7.3
resolution: fixed
2022-06-05 19:16:27jeff.allensetmessages: + msg13222
2022-06-05 19:11:07jeff.allensetmessages: - msg13220
2022-06-05 16:35:09jeff.allensetmessages: + msg13220
2022-05-23 06:14:58jeff.allensetnosy: + jeff.allen
messages: + msg13216
2021-09-29 15:09:52pekka.klarckcreate