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 following AssertionError is thrown when you run IDE with -J-Dnetbeans.javacore.noscan=true and create a Java project from template: java.lang.AssertionError: Java Extent for classpath root ...\JavaApplication1\src wasn't resolved. It applies for any project type. Marking P2 because AssertionError is important thing and because it breaks automated tests. Build NB55 Beta 200605030200, JDK1.5.0_06, WindowsXP.
Created attachment 30196 [details] Exception stack trace
Interesting. This may have some major implication in initial annotation parsing. I will investigate more.
According to Tomas, main point of this flag was disabling of modal scanning in NB 4.0/4.1, mainly for tests that doesn't use JMI (this use-case is probably still valid?). Flag should not be used for normal work with IDE.
Yes, we use this flag to speed-up tests which don't need scanning.
This is nonsense. Java project needs to use JMI. Please do not use this flag. There is no point using it for NB 5.0 / NB 5.5
If it is nonsense, should I file a bug to remove this flag from NetBeans code base? Otherwise why not to use it when you want for example test deploying of web application? Scanning is just wasting of time in this case.
I would suggest to remove assertion. Or use just informational severity and log message only. Null checking is at next line and it seems to be harmless if method NNMDRListener.resolveType() returns null. assert jmp != null : "Java Extent for classpath root " + FileUtil.getFileDisplayName(cp.getRoots()[0]) + " wasn't resolved. Probably called BEFORE the root was added to GlobalPathRegistry?"; if (jmp == null) { return null; }
It is nonsense to use it when you create new Java project. It does no harm when you use it for openide or core tests. Deploying to web server may be fine too, but I do not know what code is involved when you do it.
assertion check in NNMDRListener supressed when netbeans.javacore.noscan=true /cvs/j2ee/metadata/src/org/netbeans/modules/j2ee/metadata/Attic/NNMDRListener.java new revision: 1.1.2.14; previous revision: 1.1.2.13
Verified. Thanks.