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 196225 - AssertionError at org.netbeans.modules.cnd.modelimpl.repository.OffsetableKey.compareTo
Summary: AssertionError at org.netbeans.modules.cnd.modelimpl.repository.OffsetableKey...
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: nnnnnk
URL:
Keywords:
: 196224 196256 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-03 10:51 UTC by Exceptions Reporter
Modified: 2011-03-05 16:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177176


Attachments
stacktrace (4.89 KB, text/plain)
2011-03-03 10:51 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2011-03-03 10:51:35 UTC
This issue was reported manually by vv159170.
It already has 1 duplicates 


Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
GUEST: error apears ramdomly while using (writing in editor) Netbeans, mainly when using sugestions




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.cnd.modelimpl.repository.OffsetableKey.compareTo(OffsetableKey.java:188)
   at org.netbeans.modules.cnd.modelimpl.repository.OffsetableKey.compareTo(OffsetableKey.java:60)
   at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.compareTo(KeyBasedUID.java:121)
   at org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID.compareTo(KeyBasedUID.java:60)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileComponentInstantiations$2.compare(FileComponentInstantiations.java:181)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileComponentInstantiations$2.compare(FileComponentInstantiations.java:171)
Comment 1 Exceptions Reporter 2011-03-03 10:51:40 UTC
Created attachment 106646 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2011-03-03 11:17:56 UTC
*** Bug 196224 has been marked as a duplicate of this bug. ***
Comment 3 nnnnnk 2011-03-03 13:22:32 UTC
That's how I put new class instantiation to contaiter:
CsmFile file = newClass.getContainingFile();
if(file instanceof FileImpl) {
    ((FileImpl)file).addInstantiation(newClass);
}

So files for items in FileComponentInstantiations should be the same.

It's some repository problem. For some reasons we get wrong container by IUD or instantiations instantiations by IUD.
Comment 4 nnnnnk 2011-03-03 13:24:59 UTC

*** This bug has been marked as a duplicate of bug 196228 ***
Comment 5 Vladimir Voskresensky 2011-03-03 20:17:53 UTC
*** Bug 196256 has been marked as a duplicate of this bug. ***
Comment 6 Vladimir Voskresensky 2011-03-03 20:24:07 UTC
Not sure it's dup of 196228.
I think there is something wrong with persistence of Instantiation object.
Could you investigate it more deeply.
I.e. have a look at issue #196256 as well
Comment 7 nnnnnk 2011-03-05 16:16:00 UTC
There is no comparator in FileComponentInstantiations.