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.
Build: NetBeans IDE 7.3 Beta (Build 201209232010) VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10 OS: Linux User Comments: aldobrucale: Selected "change return method type to" hint. The type did not appear in the text of the hint, but should have been a parameterized type. The method was like this: public static <T> void isContained(final Set<T> set) { return new MyInterface<T>(); } and the implementation was missing. Stacktrace: java.lang.AssertionError: unexpected type: <none> at com.sun.tools.javac.tree.TreeMaker.Type(TreeMaker.java:648) at org.netbeans.modules.java.source.builder.TreeFactory.Type(TreeFactory.java:683) at org.netbeans.api.java.source.TreeMaker.Type(TreeMaker.java:959) at org.netbeans.modules.java.hints.errors.ChangeMethodReturnType$FixImpl.performRewrite(ChangeMethodReturnType.java:174) at org.netbeans.spi.java.hints.JavaFix$1.process(JavaFix.java:161) at org.netbeans.modules.java.hints.spiimpl.JavaFixImpl$1.run(JavaFixImpl.java:102)
Created attachment 124956 [details] stacktrace
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/7baa271f7e43
Integrated into 'main-golden', will be available in build *201306212301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7baa271f7e43 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #219071: AssertionError: unexpected type: <none> - fixed.