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 21308 - Bogus source created in default package w/ Swing editor
Summary: Bogus source created in default package w/ Swing editor
Status: CLOSED DUPLICATE of bug 14546
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-07 15:03 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Generated class (184 bytes, text/x-java)
2002-03-07 15:03 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-03-07 15:03:09 UTC
[dev mar 07] Create a build of the IDE with -Dmodules=java and start
on a fresh user dir. MDI mode. Mount a fresh directory and select its
root. Select File | New | Classes | Class. Create file Foo in the
default package. When it appears, it is corrupted: see attachment.
Sometimes the extra "public " does not appear, but the broken comment
does.

Creating a file in a non-default package works OK.

It is reproducible, but only when the editor module is *not* enabled.
So I suspect that the code generator does not work correctly with the
Swing plain-text editor kit (I use JDK 1.3.1_02) and is accidentally
dependent on some detail of the NetBeans editor's Document
implementation. Should be checked against Emacs (externaleditor) as
well.
Comment 1 Jesse Glick 2002-03-07 15:03:39 UTC
Created attachment 4987 [details]
Generated class
Comment 2 Tomas Hurka 2002-03-07 15:27:35 UTC
Yes, you are right. There is difference in Swing implementation and
Edtor implementation. See isuue #14546. I guess this issue is
duplicate of 14546. 
Comment 3 Tomas Hurka 2002-03-08 10:07:54 UTC

*** This issue has been marked as a duplicate of 14546 ***
Comment 4 Quality Engineering 2003-07-01 13:11:22 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 13:21:22 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.