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

[Nestmates] Enable nestmate changes in javac by default

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:

      Description

      While nestmates will ultimately be associated with a future source/target version of the JDK and an updated classfile version (see JDK-8187302) we want to be able to enable them by default as-if executing in that future release.

      The primary changes are confined to javac and are very straight-forward:
      - generate the nestmate attributes in the classfile
      - use virtual invocation bytecodes for private method invocations
      - don't generate private accessors

      With this change in place we can update the hotspot nestmate tests to not provide explicit "@compile" directives.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dholmes David Holmes
                Reporter:
                dholmes David Holmes
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: