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

Project Coin: Explore allowing interaction of diamond syntax and anonymous classes

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Other
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      7

      Description

      Because the inferred type using diamond with an anonymous class constructor could be outside the set of types supported by the signature attribute, using diamond with anonymous classes was disallowed in Java SE 7. As noted in the JSR 334 proposed final draft, it would be possible to ease this restriction if the inferred type was denotable.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mcimadamore Maurizio Cimadamore
                Reporter:
                darcy Joe Darcy
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: