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 - JavaProject.getCompilationUnits() return NullCompilationUnit
Summary: JavaProject.getCompilationUnits() return NullCompilationUnit
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-09 17:50 UTC by Chris Webster
Modified: 2009-10-01 14:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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