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 193659 - [70cat] Class created for throw new is not Exception
Summary: [70cat] Class created for throw new is not Exception
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 17:26 UTC by misterm
Modified: 2010-12-23 07:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-12-20 17:26:55 UTC
When a throw new NonExistingClass(...) is found in source code, a hint is shown that creates the class with the constructor mentioned. However, it does not extend Exception or RuntimeException, which is necessary for the code to compile.

Product Version = NetBeans IDE Dev (Build 101220-700684c4bc6f)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_19
Runtime = Java HotSpot(TM) Client VM 16.2-b04
Comment 1 Jan Lahoda 2010-12-21 19:37:37 UTC
Should generate subclass of Exception after:
http://hg.netbeans.org/jet-main/rev/6adbb0fa87f0
Comment 2 Quality Engineering 2010-12-23 07:05:36 UTC
Integrated into 'main-golden', will be available in build *201012230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6adbb0fa87f0
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #193659: class created for 'new Undefined()' should be an exception.