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 131967 - ClassCastException in FileImpl.fixFakeRegistrations()
Summary: ClassCastException in FileImpl.fixFakeRegistrations()
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-03 17:30 UTC by Alexander Simon
Modified: 2008-04-09 14:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full log (21.47 KB, text/plain)
2008-04-03 17:30 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2008-04-03 17:30:01 UTC
I hade exception when clucene project was reparsed.
Exception was once.
---------------------
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.ConstructorDDImpl
        at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.fixFakeRegistrations(FileImpl.java:1086)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onParseFinish(ProjectBase.java:1400)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.onFileParsingFinished(ParserQueue.java:648)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:99)
        at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:82)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Alexander Simon 2008-04-03 17:30:50 UTC
Created attachment 59632 [details]
full log
Comment 2 Alexander Simon 2008-04-03 17:38:56 UTC
P2 because exception is not caught.
Progress bar is frozen.
Comment 3 Alexander Simon 2008-04-03 17:45:54 UTC
It looks as regression.
Comment 4 Jesse Grodnik 2008-04-03 20:10:41 UTC
We need to fix for NetBeans 6.1.
Comment 5 Vladimir Kvashin 2008-04-07 13:11:10 UTC
Fixed in trunk (main):
http://hg.netbeans.org/main/rev/a65dc5fe506a

Please review the fix.
Comment 6 Vladimir Kvashin 2008-04-07 17:05:39 UTC
Even more "just in case" checks.
Please review:
http://hg.netbeans.org/main/rev/ecc773205ce6

And test:
http://hg.netbeans.org/main/rev/a4b93f02754b


Comment 7 Vladimir Voskresensky 2008-04-07 17:28:52 UTC
I reviewed and agree with changes
Comment 8 Vladimir Kvashin 2008-04-07 17:59:20 UTC
The situation is quite hard to reproduce manually
(since it is related to some subtle synchronization issues),
I created a test (see the above commit) that showed the issue.
It failed until I fixed the issue. Now it does not fail.
I believe it proofs that the issue is fixed.
Comment 10 Alexander Pepin 2008-04-07 19:17:34 UTC
Assuming that the issue was hardly reproducible without this fix I believe that the fix should be just reviewed and
needn't verification by QA.
Comment 11 Alexander Pepin 2008-04-09 14:33:37 UTC
verified in NB6.1RC1 (build 200804082140)