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

            sadayapalam Srikanth Adayapalam created issue -
            sadayapalam Srikanth Adayapalam made changes -
            Field Original Value New Value
            Link This issue duplicates JDK-8005172 [ JDK-8005172 ]
            mtrudeau Michel Trudeau made changes -
            Status New [ 10000 ] Open [ 1 ]
            mtrudeau Michel Trudeau made changes -
            Fix Version/s 9 [ 14949 ]
            mtrudeau Michel Trudeau made changes -
            Link This issue relates to JDK-8042880 [ JDK-8042880 ]
            abuckley Alex Buckley made changes -
            Summary Compiler should allow interface methods to be private Allow interface methods to be private
            larbouzo Leonid Arbuzov made changes -
            Link This issue relates to JCK-7304440 [ JCK-7304440 ]
            larbouzo Leonid Arbuzov made changes -
            Link This issue relates to JCK-7304494 [ JCK-7304494 ]
            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
            hgupdate HG Updates made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolved In Build team [ 17324 ]
            Resolution Fixed [ 1 ]
            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.
            sogoel Sonali Goel made changes -
            Labels autoverify
            sadayapalam Srikanth Adayapalam made changes -
            Link This issue relates to JDK-8074282 [ JDK-8074282 ]
            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
            hgupdate HG Updates made changes -
            Resolved In Build team [ 17324 ] master [ 18256 ]
            hgupdate HG Updates made changes -
            Resolved In Build master [ 18256 ] b54 [ 17547 ]
            sogoel Sonali Goel made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            Verification Verified [ 17000 ]
            hgupdate HG Updates made changes -
            Link This issue backported by JDK-8085354 [ JDK-8085354 ]
            jbachorik Jaroslav BachorĂ­k made changes -
            Link This issue relates to JDK-8081800 [ JDK-8081800 ]
            dholmes David Holmes made changes -
            Link This issue relates to JDK-8165827 [ JDK-8165827 ]
            iris Iris Clark made changes -
            Labels autoverify autoverify jsr379-annex2-na
            iris Iris Clark made changes -
            Labels autoverify jsr379-annex2-na autoverify jsr379-annex1-na
            darcy Joe Darcy made changes -
            Link This issue csr of CCC-8071453 [ CCC-8071453 ]

              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: