ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Bug]: Incorrect 'module-info.class' file is packed with the Ballerina executable JAR

Open gabilang opened this issue 11 months ago • 1 comments

Description

The module-info.class file of the Ballerina executable JAR (found in the jar's root directory) contains the same content of the module-info.java file of the lang.__internal langlib module, which is irrelevant.

module io.ballerina.lang.internal {
   requires io.ballerina.lang;
   requires io.ballerina.runtime;

   exports org.ballerinalang.langlib.internal;
}

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

gabilang avatar Mar 14 '24 06:03 gabilang

The above module-info.class is packed with ballerina-rt.jar as well. It seems that the modular info creation needs to be handled properly.

gabilang avatar Mar 14 '24 06:03 gabilang

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

github-actions[bot] avatar May 14 '24 14:05 github-actions[bot]