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 documentation for java project apis says that the list of compilation units returned from JavaProject.getCompilationUnits () containes a null compilation unit that represents sources that should not be compiled. There is however no way to find out which one it is. It would be useful to make it possible to locate this unit, e.g. by JavaProject.getNullCompilationUnit (), or perhaps just declare a constant with a name of this unit (to compare with compilationUnit.getName()). This is needed to: 1) assign sources to null CU 2) filter out the null CU when you want to work with "real" CUs
What about getBuildTarget() == null ?
All right. Could this be (explicitly) mentioned in documentation that this is how to recognize it? It is logical, but ... :-) Thanks!
Fixed documentation for JavaPrject.getCompilationUnits()
i've verified all these issues
closing all my verified issues