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

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

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • P3
    • Resolution: Other
    • 9
    • None
    • tools
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: