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 149431 - operation parameter added through properties window results in default int Unnamed
Summary: operation parameter added through properties window results in default int Un...
Status: RESOLVED WORKSFORME
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-10-07 23:22 UTC by Peter Lam
Modified: 2009-03-10 13:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-10-07 23:22:22 UTC
build 20081007

After adding new parameter to an operation through the properties window, it's reverted back to Unnamed and default to
type "int".
- create and name a class from the project tree or diagram
- add and name an operation in the class
- select the operation and click on parameters' '...' button to bring up the parameters dialog
- click on New Parameter to bring up the New Parameter dialog
- enter a parameter name, eg, p2, and type "double" and click OK
At this point, it shows p2 of type double in the Parameters dialog ok for the operation
- click on Update (this is an optional step) since it's new parameter but just do it to make sure
- click on OK button to dismiss the Parameters dialog
Result: in the diagram or project tree, the newly added "p2" parameter is now displayed as "Unnamed" with type "int"

Workaround: change parameter and type again from properties editor or change them from the diagram
Comment 1 Peter Lam 2008-10-07 23:29:50 UTC
this is a regression over previous builds & NB 6.1
Comment 2 Sergey Petrov 2009-03-10 13:52:43 UTC
can't reproduce with latest.
but there is an exception in parameters customizer, will be filed as another issue.