Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 195703 - [70cat] ArrayIndexOutOfBoundsException: 52
[70cat] ArrayIndexOutOfBoundsException: 52
Product: editor
Classification: Unclassified
Component: Hints & Annotations
All All
: P3 (vote)
: 7.0
Assigned To: Jan Lahoda
Depends on: 197676
  Show dependency treegraph
Reported: 2011-02-19 18:30 UTC by eltony81
Modified: 2011-04-12 20:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

stacktrace (3.82 KB, text/plain)
2011-02-19 18:31 UTC, eltony81

Note You need to log in before you can comment on or make changes to this bug.
Description eltony81 2011-02-19 18:30:59 UTC
Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X

User Comments:
GUEST: clicked the hint when there was 'incompatible types' parse error found

java.lang.ArrayIndexOutOfBoundsException: 52
   at org.openide.awt.HtmlRenderer.findColor(
   at org.openide.awt.HtmlRenderer._renderHTML(
   at org.openide.awt.HtmlRenderer.renderHTML(
   at org.netbeans.modules.editor.hints.borrowed.ListCompletionView.getPreferredWidth(
   at org.netbeans.modules.editor.hints.borrowed.ListCompletionView.access$600(
   at org.netbeans.modules.editor.hints.borrowed.ListCompletionView$RenderComponent.getPreferredSize(
Comment 1 eltony81 2011-02-19 18:31:04 UTC
Created attachment 106191 [details]
Comment 2 Stanislav Aubrecht 2011-02-21 11:52:13 UTC
i've added a check for broken HTML code in HtmlRenderer class (core-main 14b8f8b081b3) but editor team should review the hints implementation for possible other cases of invalid HTML code.
Comment 3 Stanislav Aubrecht 2011-02-21 12:12:33 UTC
just an afterthought - the broken HTML might be caused by generic in the hint message, e.g. List<Color> is then being interpreted as html code <color="cxxx"...
Comment 4 Jan Lahoda 2011-02-21 16:21:44 UTC
Yes, that is most likely the problem. Thanks. I patched the hint for now:

Thanks for the report.
Comment 5 Quality Engineering 2011-02-22 05:26:39 UTC
Integrated into 'main-golden', will be available in build *201102220001* on (upload may still be in progress)
User: S. Aubrecht <>
Log: #195703 - check for broken HTML
Comment 6 Quality Engineering 2011-02-25 05:38:08 UTC
Integrated into 'main-golden', will be available in build *201102250001* on (upload may still be in progress)
User: Jan Lahoda <>
Log: #195703: [ChangeType hint] escape '<' for the fix display name.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo