[jdk21u-dev] RFR: 8322809: SystemModulesMap::classNames and moduleNames arrays do not match the order

Goetz Lindenmaier goetz at openjdk.org
Fri Nov 29 07:37:35 UTC 2024


Resolved SystemModulesPlugin.java due to context (ClassFile.of() <--> Classfile) 

The patch is based on the commit to 23, the version for 22/22.0.1 is identical.

I can reproduce the error with the test, and the patch fixes the issue. 

I had to adapt the tests because "8317620: Build JDK tools with ModuleMainClass attribute" is missing in 21.
jdk.jfr has no main, so I exclude it from the tests.

-------------

Commit messages:
 - Fix tests
 - Backport f3be138eb80c9e7f6cc21afb75cda9e49b667c8a

Changes: https://git.openjdk.org/jdk21u-dev/pull/1189/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1189&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8322809
  Stats: 290 lines in 6 files changed: 282 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1189.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1189/head:pull/1189

PR: https://git.openjdk.org/jdk21u-dev/pull/1189


More information about the jdk-updates-dev mailing list