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 79859 - Can not add a parameter to the beginning of operation parameter list
Summary: Can not add a parameter to the beginning of operation parameter list
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 10:41 UTC by bugbridge
Modified: 2009-05-25 21:06 UTC (History)
2 users (show)

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 bugbridge 2006-07-07 10:41:24 UTC
Steps to reproduce:

- Add a class diagram
- Put a class element on the diagram and name it 'MyClass'
- Insert 'public void op(int a2)' operation
  into the 'MyClass' class element
- Double click on 'op' operation on the 'MyClass' element
  to edit it
- Go to the begin of parameter list of the 'op' operation
  and type 'int a1,' to add a new parameter and press 'Enter'
  The 'a1' parameter is incorrectly added:
  'public void  op( intint a1a2,   )'

-  Build java project
   There is an error in the 'output' window:

 Compiling 1 source file to JavaApplication\build\classes
 JavaApplication\src\MyClass.java:7: cannot find symbol
 symbol  : class intint
 location: class MyClass
     public void op(intint a1a2) {
 1 error
 BUILD FAILED (total time: 0 seconds)
Comment 1 Peter Lam 2007-03-20 20:06:53 UTC
low use case not currently impacting our installed user base.
Comment 2 George Vasick 2007-05-17 18:49:33 UTC
Planned for drawing area upgrade after NB 6.0.
Comment 3 George Vasick 2007-05-18 00:50:17 UTC
Should not use resolved/later status.
Comment 4 Thuy.d Nguyen 2007-07-11 21:50:22 UTC
The current implementation of edit control defines a space (space bar) as one of the field separators and handle it with
a special logic specifically for separators.  With this logic, it is not possible for users to type, say,  'int <space>
foo' in front of a an existing parameter or between parameters.   Fixing this issue requires major changes made to the
current implementation of the edit control framework. 

At this stage of the project,  I request this issue to be waived, since there is an alternative way to achieve the same
thing; that is using the parameter customizer from the property sheet of an operation. 

To insert a new parameter using the Parameter Customizer, do as follows:
- select a target operation either from a diagram or from the operation node on a UML project tree
- go to the property sheet of the selected operation, click the '...'  button of the parameter field to open the
Parameter Customizer dialog.
- add a new parameter and use Move Up/Down buttons to rearrange the order of the parameter
- click OK to close the customizer.
Comment 5 George Vasick 2007-07-13 16:25:49 UTC
Waiver candidates from 7/12/2007 bug scrub.
Comment 6 George Vasick 2007-07-13 16:34:39 UTC
Waiver candidates from 7/12/2007 bug scrub.
Comment 7 George Vasick 2008-01-02 16:54:29 UTC
Diagram area bugs waived for 6.0 will also be waived for 6.1.
Comment 8 Joanne Lau 2008-06-10 21:56:19 UTC
Still exists in 6.5
Comment 9 Sergey Petrov 2008-12-19 12:54:11 UTC
easy workaround (usage of properties)