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/16822] New: Graphics.setClip(null) should remove clip


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


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