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 78712 - Default multiplicity attribute value is not correctly copied
Summary: Default multiplicity attribute value is not correctly copied
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Synchronization (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 05:25 UTC by bugbridge
Modified: 2009-05-25 21:06 UTC (History)
1 user (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-06-21 05:25:00 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original submitter: sunflower

Description:
Netbeans 5.5 Preview (build 2006.02.09)

Steps to reproduce:

- Add a class diagram
- Put a class element on the diagram and name it 'Class1'
- Put a class element on the diagram and name it 'Class2'
- Go to source code of 'Class1' java class
- Insert 'int[] array = new int[] { 1, 2} ;'  attribute
  into the 'Class1' java class
- Go to the class diagram
- Copy 'array' attribute from  'Class1' to 'Class2'
     - Select 'array' attribute
     - Press and hold CTRL
     - Drag 'package int array[0..*]' from one class element to another
- Build a java project
  The java project is not compiled


  Compiling 1 source file to JavaApplication\build\classes
  JavaApplication\src\Class2.java:4: '[' expected
    int[] array = new int  {1, 2};
  JavaApplication\src\Class2.java:4: illegal start of expression
    int[] array = new int  {1, 2};
  2 errors
  BUILD FAILED (total time: 0 seconds)

'Class2' java class contains wrong default value:

    int[] array = new int  {1, 2};