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 202947 - NegativeArraySizeException at org.netbeans.editor.Annotations$LineAnnotations.getPasive
Summary: NegativeArraySizeException at org.netbeans.editor.Annotations$LineAnnotations...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-02 15:15 UTC by simpatico
Modified: 2011-10-07 14:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 149653


Attachments
stacktrace (2.82 KB, text/plain)
2011-10-02 15:15 UTC, simpatico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simpatico 2011-10-02 15:15:37 UTC
Build: NetBeans IDE 7.0.1 (Build 201107282000)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-384, Java(TM) SE Runtime Environment, 1.6.0_26-b03-384-10M3425
OS: Mac OS X

User Comments:
FrantaM: - Start (java) project in debug mode.
- Open any java class.
- Add one line, do not "Apply code changes".
- Right-mouse-click in the left side panel (line numbers) on a line with method/class decl. This line must be below the added one.

GUEST: viewing source

GUEST: I wanted to toggle  a method breakpoint for a constructor.

fsttesla: Right click over left-hand bar in Editor window, i.e. the one where breakpoints, errors, warnings and so on appear

GUEST: Tried to remove a breakpoint by clicking right mouse button on it.




Stacktrace: 
java.lang.NegativeArraySizeException
   at org.netbeans.editor.Annotations$LineAnnotations.getPasive(Annotations.java:1023)
   at org.netbeans.editor.Annotations.initMenu(Annotations.java:792)
   at org.netbeans.editor.Annotations.createMenu(Annotations.java:904)
   at org.netbeans.editor.Annotations.createPopupMenu(Annotations.java:727)
   at org.netbeans.editor.GlyphGutter$GutterMouseListener.showPopup(GlyphGutter.java:831)
   at org.netbeans.editor.GlyphGutter$GutterMouseListener.mousePressed(GlyphGutter.java:858)
Comment 1 simpatico 2011-10-02 15:15:41 UTC
Created attachment 111402 [details]
stacktrace
Comment 2 Milutin Kristofic 2011-10-06 11:09:25 UTC
Small fix: jet-main/rev/3d3750aab46d
Comment 3 Quality Engineering 2011-10-07 14:34:33 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3d3750aab46d
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #202947 - NegativeArraySizeException at org.netbeans.editor.Annotations$LineAnnotations.getPasive