[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/39553] New: gcj compile error (IllegalArgumentException) when
From: |
dmichel76 at gmail dot com |
Subject: |
[Bug swing/39553] New: gcj compile error (IllegalArgumentException) when using the add() method of GCJ container class for a JScrollPanel (Swing) |
Date: |
25 Mar 2009 15:26:32 -0000 |
gcj version: gcj (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
JRE: java-1.5.0-gcj-4.2-1.5.0.0 with Eclipse
private JScrollPane screenPane;
private Jpanel screen;
.
.
.
screenPane.add(screen);
causes a IllegalArgumentException...
The reason is as follows:
GCJ Container class on line 276 contains code for the above call:
add(Component comp)
{
addImpl(comp, null, -1)
}
The addImpl function calls, near the end (line 390):
layoutMgr.addLayoutComponent("", comp);
because it was passed null constraints.
The ScrollPaneLayout class implements the addLayoutComp (line 125):
addLayoutComponent(String key, Component component)
but notice that the 'key' variable has been passed an empty String; this
function now throws an IllegalArgumentException.
Changing the initial call tp
screenPane.add(screen, "UPPER_LEFT_CORNER");
seems to fix this issue but the behaviour is wrong and no components is
displayed on the resulting gui !
--
Summary: gcj compile error (IllegalArgumentException) when using
the add() method of GCJ container class for a
JScrollPanel (Swing)
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: roman at kennke dot org
ReportedBy: dmichel76 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39553
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug swing/39553] New: gcj compile error (IllegalArgumentException) when using the add() method of GCJ container class for a JScrollPanel (Swing),
dmichel76 at gmail dot com <=