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 29908

Summary: JavaProject.getCompilationUnits() return NullCompilationUnit
Product: java Reporter: Chris Webster <cwebster>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker CC: non_migrated_user
Priority: P2    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Chris Webster 2003-01-09 17:50:10 UTC
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.
Comment 1 Tomas Hurka 2003-01-10 08:49:37 UTC
Please, add the PROJECTS keyword to issues reported against prj40_prototype
Comment 2 Tomas Zezula 2003-01-13 10:17:02 UTC
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.
Comment 3 Jan Becicka 2003-11-25 13:59:51 UTC
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 --->
Comment 4 Jan Becicka 2003-11-25 14:08:39 UTC
---> CLOSED
Comment 5 Marian Mirilovic 2009-10-01 14:48:35 UTC
reopen to fix status and resolution
Comment 6 Marian Mirilovic 2009-10-01 14:51:10 UTC
fix status and resolution