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

Module system implementation refresh (4/2016)

    Details

      Description

      This issue tracks a refresh of the module system in JDK 9 to include:

      1. Implementation of the policy for root modules when compiling code in the unnamed module or at runtime when the main class is loaded from the class path.

      2. Migration to the -Xpatch syntax described in JEP 261. In JDK 9 then javac and the runtime support both the old and new forms but HotSpot/boot loader only supports the old form. A part of this transition then support for the old form will be dropped.

      3. Drop support for the old form of -XaddReads and -XaddExports from both javac and runtime.

      4. Update the integrity hashing so the hashes of all non-upgradeable modules are recorded in java.base. The jar and jmod command line option --hash-dependencies is dropped and replaced with --hash-modules.

      5. Allow `-addmods` to take a value `ALL-DEFAULT` to mean policy for root modules in #1 implies. The javac, javadoc and several other launchers will be changed to be compiled with `-addmods ALL-DEFAULT` or whatever the token name is.

      6. Updates to javax.lang.model API (2 new methods).

      7. Minor cleanup and improvements in several areas. Also Peter Levart's replacement of the WeakSet in jlr.Module.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: