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 78649 - Wrong source code generation after inserting operation
Summary: Wrong source code generation after inserting operation
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@uml
Depends on:
Reported: 2006-06-20 19:46 UTC by bugbridge
Modified: 2009-05-25 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-06-20 19:46:45 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original submitter: ads

Name: xyNNNNNN			Date: 07/19/2004

Bow build 05.
Steps to reproduce :
- Create class on Class Diagram .
- Insert new operation into it through popup menu .
- Select all text in text field appeared .
- Delete this text .
- Enter new text : "public void get".
- Press Enter.

As result - class will contain operation with wrong declaration :

public voidint get() {
     return null;

Return type in process of typing new declaration for operation is converted from
void to voidint.


Reviewed by UML ITeam. Not critical for EA.
xxx@xxxx 2004-07-21

Evaluation (Entry 2):
This is a result of the edit control editor that is too smart that it
automatically inserts "int" right after the keyword public is entered. So,
typing void would have the automated insertion "int" appended to it but it can
be manually removed before hitting the enter key. Of course, the bug is still valid.
Comment 1 Thuy.d Nguyen 2006-12-13 18:20:12 UTC
The issue still exists in the latest coco build, but there is a viable work
around, so lower the priority to P3 as per NB bug priority guidelines.
Comment 2 George Vasick 2007-06-28 22:49:24 UTC
Targeted in drawing area redesign.
Comment 3 George Vasick 2007-07-04 00:55:31 UTC
Restoring original priority and using the standard NB waiver process.
Comment 4 George Vasick 2008-01-02 17:43:18 UTC
Diagram area bugs waived for 6.0 will also be waived for 6.1.
Comment 5 Joanne Lau 2008-06-12 18:49:30 UTC
Still reproducible in 6.5
Comment 6 Sergey Petrov 2008-11-05 15:48:41 UTC
without live roundtrip user have more ability to correct type before code gen, so incorrect code generation is less
likely now.