This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug AWT/16822] New: Graphics.setClip(null) should remove clip
- From: "mark at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2004 20:49:25 -0000
- Subject: [Bug AWT/16822] New: Graphics.setClip(null) should remove clip
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Graphics.setClip(null) resets the current clip to the device clip, i.e., removes
the user clip. This is not explicitly specced, but is implicit in that
Graphics.getClip() is specced to return null when there is no user clip, and
setClip() is specced to take those values that getClip() returns. In the current
Classpath, however, setClip(null) throws a NullPointerException, as a null value
is not checked for.
This bug report comes from GNU Classpath:
https://savannah.gnu.org/bugs/?func=detailitem&item_id=9637
--
Summary: Graphics.setClip(null) should remove clip
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: AWT
AssignedTo: fitzsim at redhat dot com
ReportedBy: mark at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16822