Skip to main content

Exception on Mustang that doesn't happend on Tiger

5 replies [Last post]
rlopes
Offline
Joined: 2004-09-22

I have a code that works on java 1.5 but doesn't work on the build 34 of mustang.

The exception is throw in the pack() method of a JFrame.

Here is the stack trace:

Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneScrollLayout.layoutContainer(BasicTabbedPaneUI.java:2823)
at java.awt.Container.layout(Container.java:1400)
at java.awt.Container.doLayout(Container.java:1389)
at java.awt.Container.validateTree(Container.java:1472)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validateTree(Container.java:1479)
at java.awt.Container.validate(Container.java:1447)
at java.awt.Window.pack(Window.java:501)
at bumerang.ui.MainFrame.initComponents(MainFrame.java:100)
at bumerang.ui.MainFrame.(MainFrame.java:45)
at bumerang.Main.run(Main.java:92)

Help is really appreciated,
Thanks,
Ricardo Lopes.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bino_george
Offline
Joined: 2003-06-16

Hi Ricardo,
Is this code that you are running open source ?
If not, could you write a testcase that reproduces the problem. This will be very helpful. I will send email
to the module owner for BasicTabbedPaneUI to see if he
can figure out why this is happening. But, a testcase
or even this app would be very helpful. It could be
a regression, we will investigate. I will get back
to you about what I find.

Thanks,
Bino.

rlopes
Offline
Joined: 2004-09-22

I was able to create a small application that reproduces the problem.

I submit a bug to the Issue tracker also.

Both can be seen here:

https://mustang.dev.java.net/issues/show_bug.cgi?id=3

bino_george
Offline
Joined: 2003-06-16

Hi Ricardo,
Thanks for the great testcase, I have verified
the bug and submitted a JDC bug. The number is 6270998.
You should be able to see it on JDC in a day or so. I have
also forwarded the information internally within the Swing team.
Thanks for catching this. I will keep you informed
on the bug details.

Regards,
Bino.

bino_george
Offline
Joined: 2003-06-16

Hi Ricardo,
The issue responsible for the problem you
are seeing has been identified and the fix is quite
simple, so I expect it to be fixed in the next few builds.
I will let you know when it is integrated. Thanks,

Regards,
Bino.

rlopes
Offline
Joined: 2004-09-22

Thank you very much.

I will be waiting for the next releases.