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

Allow interface methods to be private

    Details

    • Subcomponent:
    • Resolved In Build:
      b54
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        During the definition & development of Java 8, as a part of the Lambda expressions support Umbrella JSR
        (https://bugs.openjdk.java.net/browse/JDK-7115044) there existed experimental support to allow interface methods being private. However this experimental feature didn't make the final cut.

        As part of https://bugs.openjdk.java.net/browse/JDK-8042880 targeted for Java SE 9, we would like to
        resurrect support for this feature.

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/592d64800143
            User: mcimadamore
            Date: 2015-03-02 11:25:57 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/592d64800143 User: mcimadamore Date: 2015-03-02 11:25:57 +0000
            Hide
            sadayapalam Srikanth Adayapalam added a comment -
            Having an old implementation that I can resurrect from the archives was very helpful. For the record here are the changes/fixes made in addition:

                - Support for static private methods was added.
                - Attempts to declare a private method that is override equivalent with a super inferface's public method is caught and reported as an error.
                  (attempting to assign "weaker" access privileges)
                - Accessors emitted into interfaces are tagged as public as required by the VM.
                - Code massaged to use the new diagnostics framework.
                - Added several more tests.
                - Assorted minor clean ups.
            Show
            sadayapalam Srikanth Adayapalam added a comment - Having an old implementation that I can resurrect from the archives was very helpful. For the record here are the changes/fixes made in addition:     - Support for static private methods was added.     - Attempts to declare a private method that is override equivalent with a super inferface's public method is caught and reported as an error.       (attempting to assign "weaker" access privileges)     - Accessors emitted into interfaces are tagged as public as required by the VM.     - Code massaged to use the new diagnostics framework.     - Added several more tests.     - Assorted minor clean ups.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/592d64800143
            User: lana
            Date: 2015-03-11 02:21:17 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/592d64800143 User: lana Date: 2015-03-11 02:21:17 +0000

              People

              • Assignee:
                sadayapalam Srikanth Adayapalam
                Reporter:
                sadayapalam Srikanth Adayapalam
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: