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.
Code Gen generates an empty java source file Right click on the DVDItem in the Class Diagram Open the DVDItem.java - not a single line of text...
Created attachment 66415 [details] zip file of java and uml projects
getting: ======== Begin processing Generate Code: 1 items Code Generation selected options: Source Folder Location - C:\instructor\SL314_C\projects\DVDLibrary\src\java Backup Sources - true Generate Markers - true Show Generate Code Dialog - true Processing element 1 of 1: Class com::dvd::model::DVDItem ... Generating source from template "Java/CompilationUnit.java" ...ERROR: java.lang.NullPointerException Error While Processing Element java.lang.NullPointerException ================================ Task Failed (total time: 0 seconds) ----------- as soon as delete all the constructors, code gens OK
I can't reproduce the issue using current 6.5 build. Looking into the model of the attached project it looks like the issue 134878 (operation that is constructor without having been marked so) that is already fixed in 6.5. *** This issue has been marked as a duplicate of 134878 ***
verified in NB 6.5 UML daily build 20080804. The problem no longer exists.