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 204434 - [71cat] AssertionError: o2=-1
Summary: [71cat] AssertionError: o2=-1
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Logger Server (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Danek
URL:
Keywords:
Depends on:
Blocks: 214805 215423
  Show dependency tree
 
Reported: 2011-10-31 11:24 UTC by dbell
Modified: 2012-09-13 11:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182442


Attachments
stacktrace (2.68 KB, text/plain)
2011-10-31 11:24 UTC, dbell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dbell 2011-10-31 11:24:35 UTC
This bug was originally marked as duplicate of bug 110956, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201110290600)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-383, Java(TM) SE Runtime Environment, 1.6.0_26-b03-383-11A511
OS: Mac OS X

User Comments:
dbell: Used code template for Map.Entry for loop. 
i.e.:
form| + tab




Stacktrace: 
java.lang.AssertionError: o2=-1
   at org.netbeans.modules.editor.hints.AnnotationHolder$PositionComparator.compare(AnnotationHolder.java:1258)
   at java.util.Collections.indexedBinarySearch(Collections.java:319)
   at java.util.Collections.binarySearch(Collections.java:307)
   at org.netbeans.modules.editor.hints.AnnotationHolder.getPosition(AnnotationHolder.java:1040)
   at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptionsImpl(AnnotationHolder.java:959)
   at org.netbeans.modules.editor.hints.AnnotationHolder.access$1400(AnnotationHolder.java:120)
Comment 1 dbell 2011-10-31 11:24:38 UTC
Created attachment 112591 [details]
stacktrace
Comment 2 Jan Lahoda 2011-10-31 11:29:05 UTC
The exception is a duplicate of bug #200469. But exception reporter keeps to create new bugs for it. Please fix the exc. reporter to duplicate the exceptions correctly.
Comment 3 Tomas Danek 2011-11-04 11:05:54 UTC
I'll take a look.
Comment 4 Tomas Danek 2011-11-09 13:01:06 UTC
serverside fix - NO71
Comment 5 Marian Mirilovic 2012-06-05 08:13:31 UTC
Tomas, what is the status of this issue ?
Comment 6 Marian Mirilovic 2012-06-25 08:20:49 UTC
This is the stopper for NB 7.2, please evaluate and resolve ASAP.
Comment 7 Tomas Danek 2012-06-25 08:52:42 UTC
did not have time to take a look yet (might be fixed by recent changes in reopen mechanism), will take a look ASAP
Comment 8 Jan Lahoda 2012-07-12 07:05:17 UTC
FYI: still happens, last time with bug #214805.
Comment 9 Jan Lahoda 2012-07-12 08:14:06 UTC
And another: bug #215423.
Comment 10 Jan Lahoda 2012-09-11 13:23:22 UTC
And another: bug #216879. Did the time come to finally fix this?
Comment 11 Tomas Danek 2012-09-13 11:44:54 UTC
finally fixed (corrections in ER DB). Also increased boundary so that only bugs newer than 7.1 can reopen/be reported to BZ.

http://hg.netbeans.org/main/misc/rev/4c11a70194c3