JDK-8058519 : Project Coin: Explore allowing interaction of diamond syntax and anonymous classes
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Other
  • Submitted: 2014-09-16
  • Updated: 2015-03-25
  • Resolved: 2014-10-29
Related Reports
Relates :  
Relates :  
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.