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 20045 - Unable to add a new class to the empty file.
Summary: Unable to add a new class to the empty file.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on: 14546
Blocks:
  Show dependency tree
 
Reported: 2002-02-01 14:11 UTC by Marek Grummich
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (4.87 KB, text/plain)
2002-02-01 14:12 UTC, Marek Grummich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Grummich 2002-02-01 14:11:45 UTC
Build 200202010331 JDK1.4.0build92
Here is a test case:
1. create a new java file (aaa.java)
2. remove whole contens of the file 
3. save the file
4. in the explorer inkove a popup menu and select Add -> Class
5. fill in a class name (aaa) and confirm
=> attached exception
Comment 1 Marek Grummich 2002-02-01 14:12:36 UTC
Created attachment 4524 [details]
Exception
Comment 2 Svata Dedic 2002-05-09 10:34:58 UTC
The issue has an easy workaround: create a blank line in the document,
then it works OK.
Comment 3 Svata Dedic 2002-05-24 08:48:38 UTC
Still indirectly blocked by #17061 (14546 was marked as a duplicate of
that issue)
Comment 4 Tomas Hurka 2002-06-25 17:25:44 UTC
Fixed in trunk.
Comment 5 Jan Becicka 2002-06-27 11:01:44 UTC
VERIFIED
Comment 6 Quality Engineering 2003-07-01 13:15:29 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.