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

[Nestmates] Enable nestmate changes in javac by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • tools

      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.

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

              Created:
              Updated:
              Resolved: