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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Other
    • Icon: P3 P3
    • None
    • 9
    • tools
    • None
    • 7

      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.

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

              Created:
              Updated:
              Resolved: