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: | Missing new keyword, hint. | ||
---|---|---|---|
Product: | java | Reporter: | _ gtzabari <gtzabari> |
Component: | Source | Assignee: | Rastislav Komara <moonko> |
Status: | NEW --- | ||
Severity: | blocker | CC: | markiewb |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | The source-code triggering the problem |
Description
_ gtzabari
2007-08-11 20:30:46 UTC
Created attachment 46480 [details]
The source-code triggering the problem
The problem seems to be triggered by the following code sniplet: return AbstractList<Image>() notice the lack of "new" in between "return" and "AbstractList". I acknowledge this is a bug in my code but I expect Netbeans to handle it more gracefully. Ideally it should display a compiler error on that line and the "Fix Error" action should insert "new" in the appropriate location. If you look int the tool tip of the lightbulb you'll see that the first error is illegal start of expression. That means that the Summary of the bug is incorrect. It is not always possible (or doable for performance reasons) to guess correctly what the user meant. Overtake. |