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 14546 - Wrong code generation
Summary: Wrong code generation
Status: CLOSED DUPLICATE of bug 17061
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
: 16499 21308 23097 (view as bug list)
Depends on: 17061
Blocks: 20045
  Show dependency tree
 
Reported: 2001-08-17 17:00 UTC by Marek Grummich
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch for the editor module (753 bytes, patch)
2001-10-31 09:36 UTC, Miloslav Metelka
Details | Diff
Patch for java module (6.83 KB, patch)
2001-11-27 13:02 UTC, Tomas Hurka
Details | Diff
Extra ending new-line compatibility fix (888 bytes, patch)
2002-05-09 13:29 UTC, Miloslav Metelka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Grummich 2001-08-17 17:00:06 UTC
Build 200108170100
Described behaviour is happened when Editor modul is removed from the IDE. The
following code is generated when user wants to add some constructor, method,
field into an empty class.
class eeeee {

}public int newField;

public eeeee() {
}

public void newMethod() {
Comment 1 Tomas Hurka 2001-08-22 11:02:54 UTC
Editor's Document implementation of Element.getEndOffset() is
inconsistent with Swing's Document implementation.
Comment 2 Jan Lahoda 2001-10-12 13:30:56 UTC
*** Issue 16499 has been marked as a duplicate of this issue. ***
Comment 3 Miloslav Metelka 2001-10-31 09:36:23 UTC
Created attachment 3206 [details]
Patch for the editor module
Comment 4 Miloslav Metelka 2001-10-31 09:45:51 UTC
According to our last discussion with Tomas Hurka I've attached the
patch for the editor module that makes it compatible with the Swing
behavior. I'm reassigning the issue to java module. Please close it
once you implement your side. Thanks. Mila
Comment 5 Jan Chalupa 2001-11-27 12:49:51 UTC
Target milestone -> 3.3.1.
Comment 6 Tomas Hurka 2001-11-27 12:57:47 UTC
I prepared the patch for java module. This which works OK if editor
module is not installed. Unfortunately with editor module installed,
there are still some incompatibilities. One of them is SourceElem test
from nb_all/java/test . I will attach my patch. Assigning back to
editor.
Comment 7 Tomas Hurka 2001-11-27 13:02:09 UTC
Created attachment 3591 [details]
Patch for java module
Comment 8 Tomas Hurka 2002-03-08 10:07:53 UTC
*** Issue 21308 has been marked as a duplicate of this issue. ***
Comment 9 Svata Dedic 2002-03-22 15:04:32 UTC
Please look at issue #20045. It seems that the NB Editor's document
still behaves differently than the Swing default one. 
Comment 10 Tomas Hurka 2002-05-03 13:53:12 UTC
*** Issue 23097 has been marked as a duplicate of this issue. ***
Comment 11 Tomas Hurka 2002-05-03 13:54:16 UTC
Priority increased due to #23097
Comment 12 Miloslav Metelka 2002-05-09 10:55:54 UTC
This bug is a subset of the #17061. The fix is almost ready but it
requires announcement on nbdev. The announcement will be done tomorrow.
Comment 13 Miloslav Metelka 2002-05-09 13:29:40 UTC
Created attachment 5682 [details]
Extra ending new-line compatibility fix
Comment 14 Miloslav Metelka 2002-05-09 14:13:58 UTC
Marking as dup of 17061.

*** This issue has been marked as a duplicate of 17061 ***
Comment 15 Marek Grummich 2002-10-14 11:27:10 UTC
Verified
Comment 16 Quality Engineering 2003-06-30 18:11:51 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.