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 211816 - Class view unit test failed after fixing bug #211804
Summary: Class view unit test failed after fixing bug #211804
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-04-27 05:01 UTC by Alexander Simon
Modified: 2012-05-01 09:54 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 Alexander Simon 2012-04-27 05:01:27 UTC
Test failed because error output has unexpected errors:

testcase: testQuote(org.netbeans.modules.cnd.classview.QuoteTestCase):	FAILED
ERR Difference - check: diff /home/as204739/devarea/cnd-main/cnd.classview/build/test/unit/work/o.n.m.c.c.Q/testQuote/quote.cc.err /home/as204739/devarea/cnd-main/cnd.classview/build/test/unit/work/o.n.m.c.c.Q/testQuote/quote.cc.err.golden
Beginning of diff:
	    + java.lang.Exception: no deref object for uid[<UNNAMED CLASSIFIER UID>:KeyBasedUID on OffsDeclKey: 4[t 145-210] {/home/as204739/devarea/cnd-main/cnd.classview/build/test/unit/data/org/netbeans/modules/cnd/classview/QuoteTestCase/typedef_test.h; /home/as204739/devarea/cnd-main/cnd.classview/build/test/unit/data/org/netbeans/modules/cnd/classview/QuoteTestCaseN}] of TYPEDEF [145-210][typedef_test.h 13:1-18:3] [13:1-18:3]
	    + 	at org.netbeans.modules.cnd.modelimpl.uid.UIDProviderIml.get(UIDProviderIml.java:122)
	    + 	at org.netbeans.modules.cnd.modelimpl.uid.UIDProviderIml.get(UIDProviderIml.java:85)
	    + 	at org.netbeans.modules.cnd.api.model.util.UIDs.get(UIDs.java:70)
	    + 	at org.netbeans.modules.cnd.classview.PersistentKey.createKey(PersistentKey.java:123)
	    + 	at org.netbeans.modules.cnd.classview.HostKeyArray.removeDeclaration(HostKeyArray.java:240)
	    + 	at org.netbeans.modules.cnd.classview.ChildrenUpdater.update(ChildrenUpdater.java:172)
	    + 	at org.netbeans.modules.cnd.classview.ChildrenUpdater.update(ChildrenUpdater.java:134)
	    + 	at org.netbeans.modules.cnd.classview.BaseTestCase.modelChanged(BaseTestCase.java:142)
	    + 	at org.netbeans.modules.cnd.modelimpl.csm.core.ListenersImpl.fireModelChanged(ListenersImpl.java:145)
	    + 	at org.netbeans.modules.cnd.modelimpl.csm.core.Notificator.flush(Notificator.java:233)
	    + 	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.postParseNotify(FileImpl.java:726)
	    + 	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:585)
	    + 	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread._run(ParserThread.java:148)
	    + 	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:74)
	    + 	at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:92)
	    + 	at java.lang.Thread.run(Thread.java:662)
Comment 1 Vladimir Voskresensky 2012-04-27 05:07:06 UTC
confirmed
Comment 2 Vladimir Voskresensky 2012-04-27 05:57:23 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/8c6484a530f2

btw, these fails shows another problem:
- due to setting to DUMMY for cache value in UID => even having in hand CsmObject the following can happen:
uid = UIDs.get(decl);
uid.getObject() == null

it happens when physical removal was done between this lines
Comment 3 Quality Engineering 2012-05-01 09:54:40 UTC
Integrated into 'main-golden', will be available in build *201205010400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8c6484a530f2
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #211816 - Class view unit test failed after fixing bug #211804
- We only want to prevent deserialization of old state, so hold removed object till physical removal for non-null client's queries.