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.
Product Version: NetBeans IDE Dev (Build 100521-70a0fc425a0d) Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13 System: Linux version 2.6.31-21-generic running on i386; UTF-8; en_US (nb) Creating a new project indicates Reference Problem. Problem: The project uses a class library called "junit", but this class library was not found. Solution: Click Resolve to open the Library Manager and create a new class library called "junit".
Indeed, I get on console WARNING [org.netbeans.modules.project.libraries.LibrariesStorage]: Cannot load library from file org-netbeans-api-project-libraries/Libraries/junit-3.8.2.xml in Default System, reason: Unspecified library type for: junit even though the descriptor says <type>j2se</type>. Not sure if this could be a side effect of bug #186623, but if so, there is still a serious robustness issue in the parser.
It happened in trunk only and randomly.
Jesse, do you have steps how to reproduce it? Thanks
No special steps. Just start cluster.config=basic with a fresh userdir. Warning is printed regarding junit-3.8.2 lib, and j2seproject's show broken references. Are you trying in a build with or without the fix of bug #186623? Again, I suspect this is a downstream bug.
I was trying it with Peter on the same build he reported the problem. I will update before the fix, rebuild the IDE and try.
I did update and rebuild from latest sources of jet-main and I am not able to reproduce it.
Thanks Jesse, the issue #186623 is the root cause. I am now able to reproduce it. I will rewrite the LibDeclParser not to be reused as it's much saver.
Fixed in jet-main 904838b4d60b
Integrated into 'main-golden', will be available in build *201005280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/904838b4d60b User: Tomas Zezula <tzezula@netbeans.org> Log: #186500:Creating a new project indicates Reference Problem