JDK-8366255 : Remove 'package_to_module' function from imageFile.cpp
  • Type: Sub-task
  • Component: tools
  • Sub-Component: jlink
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-08-27
  • Updated: 2025-08-28
  • Resolved: 2025-08-28
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.
JDK 26
26 masterFixed
Related Reports
Cloners :  
Description
This is dead code, so should be removed.

JDK images can be built with it removed and there's no evidence of call sites (either via JNI or cpp) anywhere in the code (and there were no tests for it).

The benefit of removing this is reducing the number of places where the flags associated with package references are used, since those flags can be adapted/extended to make preview mode support (in Valhalla) easy.

So having one fewer places that read them is good.
Comments
Changeset: ab1f2af4 Branch: master Author: David Beaumont <david.beaumont@oracle.com> Committer: David Holmes <dholmes@openjdk.org> Date: 2025-08-28 06:57:57 +0000 URL: https://git.openjdk.org/jdk/commit/ab1f2af4f0e9d3bea53f394413720c19fc7cae62
28-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26965 Date: 2025-08-27 17:44:04 +0000
27-08-2025