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.
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)
Created attachment 106646 [details] stacktrace
*** Bug 196224 has been marked as a duplicate of this bug. ***
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.
*** This bug has been marked as a duplicate of bug 196228 ***
*** Bug 196256 has been marked as a duplicate of this bug. ***
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
There is no comparator in FileComponentInstantiations.