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 196294 - Report Problem window itself is bugged. Error: ArrayIndexOutOfBoundsException: 136
Summary: Report Problem window itself is bugged. Error: ArrayIndexOutOfBoundsException...
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 12:57 UTC by lgs
Modified: 2011-06-09 17:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 177257


Attachments
stacktrace (2.54 KB, text/plain)
2011-03-04 12:57 UTC, lgs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lgs 2011-03-04 12:57:40 UTC
This bug was originally marked as duplicate of bug 174687, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows 7

User Comments:
lgs: What the, the Report Problem window itself is bugged, yet it is very minor one.
To reproduce: 
Fill up the first line with text, and let line wrap to second line, and put a space at the end of the first line.
Then, I (accidentally, again...) click the left mouse button at the end of the first line. The error will sometimes show up. (You may need to click the mouse button multiple times to get the error)




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 136
   at sun.font.FontDesignMetrics.charsWidth(FontDesignMetrics.java:492)
   at javax.swing.text.Utilities.getTabbedTextOffset(Utilities.java:381)
   at javax.swing.text.Utilities.getTabbedTextOffset(Utilities.java:302)
   at javax.swing.text.Utilities.getTabbedTextOffset(Utilities.java:286)
   at javax.swing.text.WrappedPlainView$WrappedLine.viewToModel(WrappedPlainView.java:697)
   at javax.swing.text.CompositeView.viewToModel(CompositeView.java:408)
Comment 1 lgs 2011-03-04 12:57:44 UTC
Created attachment 106709 [details]
stacktrace
Comment 2 Marian Mirilovic 2011-03-05 14:11:02 UTC
Please use newer JDk build and see http://bugs.sun.com/view_bug.do?bug_id=6857057
Comment 3 Marian Mirilovic 2011-06-09 17:50:47 UTC
Fixed in JDK6u18