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.
Summary: | ClassCastException: com.sun.tools.javac.code.Type$TypeVar cannot be cast to com.sun.tools.javac.code.Type$ClassType | ||
---|---|---|---|
Product: | java | Reporter: | lforet <lforet> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 201680 |
Attachments: | stacktrace |
Description
lforet
2013-06-25 15:26:23 UTC
Created attachment 136280 [details]
stacktrace
It happens when I try to add a generic type to a class and the name of the type is the classname I extends. Example : public class MyWidget<Widget> extends Widget ofcourse what I wanted to write was public class MyWidget<W extends Widget> extends Widget But I had the exception before. Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/a84283bfb53f http://hg.netbeans.org/main/nb-javac/rev/076f9dedb780 Integrated into 'main-silver', will be available in build *201307011244* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a84283bfb53f User: Dusan Balek <dbalek@netbeans.org> Log: Issues #231727, #231788, and #223560 - fixed. |