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 251043

Summary: Multiple instances of default lookup.
Product: platform Reporter: Tomas Zezula <tzezula>
Component: LookupAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Zezula 2015-03-09 18:57:48 UTC
The MockLookup fails during installation as there are multiple instances of default lookup (MockLookup).

testClearNonProjectCache(otool.project.nbbridge.TWProjectManagerTest)  Time elapsed: 0.056 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Expected: <null> but was: ProxyLookup(class=class org.openide.util.test.MockLookup)->[]
        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.Assert.assertTrue(Assert.java:22)
        at junit.framework.Assert.assertNull(Assert.java:277)
        at junit.framework.Assert.assertNull(Assert.java:268)
        at org.openide.util.test.MockLookup.<init>(MockLookup.java:88)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at java.lang.Class.newInstance(Class.java:379)
        at org.openide.util.Lookup.getDefault(Lookup.java:151)
        at org.openide.util.test.MockLookup.<clinit>(MockLookup.java:77)
        at otool.project.nbbridge.TestUtil.makeScratchDir(TestUtil.java:78)
        at otool.project.nbbridge.TWProjectManagerTest.setUp(TWProjectManagerTest.java:57)
Comment 1 Tomas Zezula 2015-03-09 18:59:33 UTC
Fixed jet-main 06be7451fa2c
Comment 2 Quality Engineering 2015-03-13 03:14:41 UTC
Integrated into 'main-silver', will be available in build *201503130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/06be7451fa2c
User: Tomas Zezula <tzezula@netbeans.org>
Log: #251043:Multiple instances of default lookup.