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.
The JavaProject.getCompilationUnits() method returns a collection of NullCompilationUnits for a valid project, this causes problems when attempting to use the code suggested in 29713. Invoking CompilationUnit.getBuildTarget returns null.
Please, add the PROJECTS keyword to issues reported against prj40_prototype
The NullCompilationUnis is a special CompilationUnit which is assigned to sources which should not be compiled. The JavaProject.getCompilationUnits() has to return also this CompilationUnit, because it is also member of Java Project. I will add description of this behaviour into the JavaProject.getCompilationUnits javadoc.
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as VERIFIED --->
---> CLOSED
reopen to fix status and resolution
fix status and resolution