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.
Steps to reproduce: - Create a Class diagram - Put a Class element to the diagram and name it 'MyClass' - Go to the source of the class - Add 'java.util.List' import into the source ------------------------------------------------------------- import java.util.List; public class MyClass { public MyClass() { } } ------------------------------------------------------------- - Add 'List list' attribute into the source ------------------------------------------------------------- import java.util.List; public class MyClass { List list; public MyClass() { } } ------------------------------------------------------------- Set/get methods are generated with 'ArrayList' type instead of 'List' type ------------------------------------------------------------- import java.util.List; public class MyClass { List list; public MyClass() { } public ArrayList getList() { return list; } public void setList(ArrayList val) { this.list = val; } } ------------------------------------------------------------- The java project is not compiled: Compiling 1 source file to JavaApplication\build\classes JavaApplication\src\MyClass.java:10: cannot find symbol symbol : class ArrayList location: class MyClass public ArrayList getList() { JavaApplication\src\MyClass.java:14: cannot find symbol symbol : class ArrayList location: class MyClass public void setList(ArrayList val) { 2 errors BUILD FAILED (total time: 1 second)
not reproducible with new RE/CodeGen
verified in ide-coco-061101_7