This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug AWT/16737] New: setBackground(null) throws exception


Acunia's Font.SetFont3 test currently throws a NullPointerException. 
This exception is thrown when the test calls setBackground(null) on a
certain component.  In that situation, the component should inherit
the background color of the nearest ancestor whose background is
already set.

But I'm not sure what should happen if the component doesn't have a
parent.
------- Additional Comments From djee at redhat dot com  2004-02-26 14:31 -------
Fixed in java-gui-branch.  Please verify.

BTW, if a component doesn't have a parent, it's probably a Window or a
Frame object.  These components should get their default bg/fg colours
from the appropriate SystemColor entry.
------- Additional Comments From fitzsim at redhat dot com  2004-05-18 17:22 -------
Verified; fixed on java-gui-branch.


-- 
           Summary: setBackground(null) throws exception
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P1
         Component: AWT
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: djee at redhat dot com
                CC: djee at redhat dot com,gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16737


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]