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 - Multiple instances of default lookup.
Summary: Multiple instances of default lookup.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-09 18:57 UTC by Tomas Zezula
Modified: 2015-03-13 03:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.