public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug AWT/16822] New: Graphics.setClip(null) should remove clip
@ 2004-07-29 20:49 mark at gcc dot gnu dot org
  2004-08-02 19:08 ` [Bug AWT/16822] " pinskia at gcc dot gnu dot org
  2005-08-21  5:33 ` [Bug awt/16822] " fitzsim at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-07-29 20:49 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug AWT/16822] Graphics.setClip(null) should remove clip
  2004-07-29 20:49 [Bug AWT/16822] New: Graphics.setClip(null) should remove clip mark at gcc dot gnu dot org
@ 2004-08-02 19:08 ` pinskia at gcc dot gnu dot org
  2005-08-21  5:33 ` [Bug awt/16822] " fitzsim at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-02 19:08 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-02 19:08:34
               date|                            |


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug awt/16822] Graphics.setClip(null) should remove clip
  2004-07-29 20:49 [Bug AWT/16822] New: Graphics.setClip(null) should remove clip mark at gcc dot gnu dot org
  2004-08-02 19:08 ` [Bug AWT/16822] " pinskia at gcc dot gnu dot org
@ 2005-08-21  5:33 ` fitzsim at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fitzsim at redhat dot com @ 2005-08-21  5:33 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-08-21 05:32 -------
Fixed by:

2005-08-21  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GdkGraphics.java (setClip(Shape)): Clear
	clip when clip == null.
	* gnu/java/awt/peer/gtk/GdkGraphics2D.java (setClip(Shape)):
	Likewise.

Closing.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-21  5:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-29 20:49 [Bug AWT/16822] New: Graphics.setClip(null) should remove clip mark at gcc dot gnu dot org
2004-08-02 19:08 ` [Bug AWT/16822] " pinskia at gcc dot gnu dot org
2005-08-21  5:33 ` [Bug awt/16822] " fitzsim at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).