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 110846

Summary: equals sign not removed after default value is removed
Product: uml Reporter: Sherry Zhou <sherryzhou>
Component: Diagram ClassAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Sherry Zhou 2007-07-25 00:05:27 UTC
build 070724

Regression from nb5.5.1

1. Add a class element to a class diagram
2. Add an attribute with default value 
    private int counter=1
3. Remove the default value from the properties sheet.
-- "=" still stays in the diagram
    private int counter
Comment 1 Craig Conover 2007-08-08 22:56:20 UTC
When I do this, the "=" sign disappears.
Unable to reproduce on WinXP. Perhaps OS specific issue?
Comment 2 Peter Lam 2007-08-24 00:24:38 UTC
Actually the step #3 is not specific enough. It should have indicated to do the following so that a space remains.
3. from the properties sheet, select the default value, eg, double click the value
4. press Space bar to delete the the value ==>> this action really replaces the value with a space instead of deleting it.

The issue is that it's not smart enough to remove the '=' sign if there's a space there. I'll re-open this one for the case.
Comment 3 George Vasick 2007-08-28 21:41:11 UTC
Not a regression.  Reproducible in 5.5.1 as well.
Comment 4 Joanne Lau 2008-06-10 19:50:26 UTC
Still exists in 6.5