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.

Bug 219071 - AssertionError: unexpected type: <none>
Summary: AssertionError: unexpected type: <none>
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-26 15:23 UTC by aldobrucale
Modified: 2013-06-22 02:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192800


Attachments
stacktrace (5.21 KB, text/plain)
2012-09-26 15:23 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2012-09-26 15:23:46 UTC
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)
Comment 1 aldobrucale 2012-09-26 15:23:48 UTC
Created attachment 124956 [details]
stacktrace
Comment 2 Dusan Balek 2013-06-20 10:05:49 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/7baa271f7e43
Comment 3 Quality Engineering 2013-06-22 02:04:59 UTC
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.