bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/25832] New: java.awt.Container#addImpl passes null String to ja


From: james dot damour at request dot com
Subject: [Bug awt/25832] New: java.awt.Container#addImpl passes null String to java.awt.LayoutManager
Date: 17 Jan 2006 22:42:56 -0000

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]