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 70178 - AIOOBE is thrown upon "Show Javadoc"
Summary: AIOOBE is thrown upon "Show Javadoc"
Status: VERIFIED DUPLICATE of bug 65632
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-10 03:06 UTC by _ alexlamsl
Modified: 2008-12-22 20:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexlamsl 2005-12-10 03:06:37 UTC
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)
Comment 1 Miloslav Metelka 2005-12-10 13:01:05 UTC
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.
Comment 2 Miloslav Metelka 2005-12-10 13:03:12 UTC
Apologies, a better description is in JDK issue
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5042872
Comment 3 _ alexlamsl 2005-12-10 13:13:31 UTC
oh I see - would you mind testing on your system to verify reproducibility?

or shall I contact the JDK team directly?
Comment 4 Miloslav Metelka 2005-12-11 10:20:24 UTC
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.
Comment 5 Jan Becicka 2005-12-12 07:13:11 UTC

*** This issue has been marked as a duplicate of 65632 ***
Comment 6 Marian Mirilovic 2006-01-17 13:02:15 UTC
verified duplicate