In GNU CP, java.awt.Container#addImpl sometimes passes a null String to
java.awt.LayoutManager#addLayoutComponent(String, Component). The Sun JDK does
not. I *think* that the following patch will fix it without negative
consequences:
--- Container.java 2006-01-17 17:38:54.364249920 -0500
+++ Container.java.fix 2006-01-17 17:40:26.924368424 -0500
@@ -395,7 +395,7 @@
else if (constraints instanceof String)
layoutMgr.addLayoutComponent((String) constraints, comp);
else
- layoutMgr.addLayoutComponent(null, comp);
+ layoutMgr.addLayoutComponent(new String(), comp);
}
// We previously only sent an event when this container is showing.
--
Summary: java.awt.Container#addImpl passes null String to
java.awt.LayoutManager
Product: classpath
Version: 0.19
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: james dot damour at request dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25832
_______________________________________________
Bug-classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-classpath