This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The development version 201408270001 does not correctly recognise a cast to an interface with type parameters. Simple example (formatting from netbeans!): public Attribute<Object, ? extends Object> getSomething() { return ((Attribute < Object, ? extends Object > )) null; } The return line complains with the message "incompatible types: Attribute is not a functional interface" and "multiple non-overriding abstract methods found in interface Attribute" and "')' expected" Maven has no problems (and Netbeans 8.0 did not complain either) Attribute is the class javax.persistence.metamodel.Attribute with two type parameters.
Sorry, the example above contains an error: There must not be two parentheses for the cast of course...
Already fixed in the current dev build. *** This bug has been marked as a duplicate of bug 246700 ***