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

Project Coin: diamond and anonymous classes

    Details

    • Subcomponent:
    • Resolved In Build:
      b59
    • Verification:
      Verified

      Backports

        Description

        At some point, during JDK 7 development, the following changeset:

        http://hg.openjdk.java.net/jdk7/jdk7/langtools/rev/ca32f2986301

        Allowed diamond syntax to be used in conjunction with anonymous inner classes. That change has been backed out for scoping reasons. It is now time to re-enable it, as the analysis in JDK-8058519 shows that such a simple approach - together with the more powerful JDK 8 inference, could indeed be beneficial in the vast majority of cases.

          Issue Links

            Activity

            Hide
            sadayapalam Srikanth Adayapalam added a comment -
            @Victor, As we are approaching end game, it would help a lot if you are able to confirm that the 177 JCK tests tagged as "failing" above are all harmless failures
            that simply call for remastering the tests (i.e turning them from being negative tests into positive tests), See the failure mode is uniformly
            "Failed. compilation did not fail as expected". I did sample a few of those to confirm that they need to be turned into positive tests for JDK 9
            with support for <> and anonymous classes coming in.



            Show
            sadayapalam Srikanth Adayapalam added a comment - @Victor, As we are approaching end game, it would help a lot if you are able to confirm that the 177 JCK tests tagged as "failing" above are all harmless failures that simply call for remastering the tests (i.e turning them from being negative tests into positive tests), See the failure mode is uniformly "Failed. compilation did not fail as expected". I did sample a few of those to confirm that they need to be turned into positive tests for JDK 9 with support for <> and anonymous classes coming in.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/816bd88d33a8
            User: mcimadamore
            Date: 2015-03-31 10:36:37 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/816bd88d33a8 User: mcimadamore Date: 2015-03-31 10:36:37 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/816bd88d33a8
            User: lana
            Date: 2015-04-08 21:37:41 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/816bd88d33a8 User: lana Date: 2015-04-08 21:37:41 +0000

              People

              • Assignee:
                sadayapalam Srikanth Adayapalam
                Reporter:
                mcimadamore Maurizio Cimadamore
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: