This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug AWT/16737] New: setBackground(null) throws exception
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2004 00:27:52 -0000
- Subject: [Bug AWT/16737] New: setBackground(null) throws exception
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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