JDK-8372590 : [lworld] runtime/modules/PatchModule/PatchModuleClassList.java fails with --enable-preview
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-11-26
  • Updated: 2025-12-15
  • Resolved: 2025-12-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-valhallaResolved
Related Reports
Causes :  
Duplicate :  
Description
java.lang.RuntimeException: Hello should be in the classlist
	at PatchModuleClassList.main(PatchModuleClassList.java:142)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
	at java.base/java.lang.Thread.run(Thread.java:1474)

This corresponds to scenario 3. I've attached the two classlist outputs, without and with --enable-preview, respectively. 

Problemlisting for now.
Comments
Pretty sure this is caused by heap dumping being disabled. Will re-open if this is not fixed when CDS heap dumping is enabled.
12-12-2025

I'm unable to reproduce this locally with the CDS draft.
04-12-2025