[Nestmates] Enable nestmate changes in javac by default

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: