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.
Tested on Mustang b61 and NB5 dev build 200512082240 Steps to reproduce: 1) Right-click --> "Show Javadoc" to show javadoc of a method in a class. 2) repeat the procedure to show another javadoc of a method in a different class. java.lang.ArrayIndexOutOfBoundsException: -1 at javax.swing.text.BoxView.getOffset(BoxView.java:1077) at javax.swing.text.BoxView.childAllocation(BoxView.java:669) at javax.swing.text.CompositeView.getChildAllocation (CompositeView.java:215) at javax.swing.text.BoxView.getChildAllocation(BoxView.java:427) at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.calculateViewPosition (BasicTextUI.java:1915) at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.layoutContainer (BasicTextUI.java:1891) at java.awt.Container.layout(Container.java:1395) at java.awt.Container.doLayout(Container.java:1384) at java.awt.Container.validateTree(Container.java:1467) at java.awt.Container.validateTree(Container.java:1474) at java.awt.Container.validateTree(Container.java:1474) at java.awt.Container.validate(Container.java:1442) at javax.swing.RepaintManager.validateInvalidComponents (RepaintManager.java:608) [catch] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run (SystemEventQueueUtilities.java:127) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
It is dup of JDK issue http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5041079 According to the bug description it was fixed in 1.5 so it's strange that this problem is present in Mustang.
Apologies, a better description is in JDK issue http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5042872
oh I see - would you mind testing on your system to verify reproducibility? or shall I contact the JDK team directly?
I've tested the attached JEditorPaneBug app from the issue on my Linux FC3+Gnome 2.8: 1.4.2_08 - can reproduce the exception 1.5.0_06 - cannot reproduce 1.6.0 b61 - cannot reproduce Not sure whether this could be platform dependent but adding rstrobl to cc asking to test on WinXP. Thanks.
*** This issue has been marked as a duplicate of 65632 ***
verified duplicate