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.
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};