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.
Apply following diff to one of project.libraries tests and it starts to fail. It should not. diff -r f7984afa3ada project.libraries/test/unit/src/org/netbeans/modules/project/libraries/LibrariesStorageDeadlock166109Test.java --- a/project.libraries/test/unit/src/org/netbeans/modules/project/libraries/LibrariesStorageDeadlock166109Test.java Thu May 28 17:34:43 2009 +0200 +++ b/project.libraries/test/unit/src/org/netbeans/modules/project/libraries/LibrariesStorageDeadlock166109Test.java Thu May 28 17:36:53 2009 +0200 @@ -94,7 +94,7 @@ // thus can yield wrong results. To workaround that (and simulate the // deadlock) here is direct call to reset the cache. // Ideally it shall not be necessary for arr1 to have length 1 - LibraryManagerTest.resetCache(); +// LibraryManagerTest.resetCache(); Library[] arr1 = LibraryManager.getDefault().getLibraries(); assertEquals("One", 1, arr1.length); }
Fixed by #1399f036a1db, now just applied the diff which caused test failure before.
jet-main: c5846476044a
Integrated into 'main-golden', will be available in build *200909220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c5846476044a User: Tomas Zezula <tzezula@netbeans.org> Log: #166198:Race condition in LibraryManager