Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8197532

Re-examine policy for the default set of modules when compiling or running code on the class path

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:

      Backports

        Description

        This issue tracks a re-examination of the policy defined in JEP 261 for the default set of root modules when compiling or running code on the class path. With the JEP 320 changes then the need to exclude the modules shared with Java EE goes away and the policy can be simply:

        "Every module on the upgrade module path or among the system modules that exports at least one package, without qualification."

        The implication is that the java.se aggregator will not be resolved. If the run-time image contains java.se and non-Java SE java.* modules then they will be resolved. The latter will avoid surprises for cases where modules such as java.json or java.ws.rs are included in the same run-time image as java.se.

        Changing the policy will require a change to javac and runtime. The jlink system modules plugin also implements this policy but it uses the runtime support so doesn't need its own changes.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alanb Alan Bateman
                  Reporter:
                  alanb Alan Bateman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: