commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #6067] java.awt.geom.RoundRectangle2D.intersects parti


From: Sven de Marothy
Subject: [commit-cp] [bugs #6067] java.awt.geom.RoundRectangle2D.intersects partially wrong
Date: Sun, 01 Aug 2004 19:39:58 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040323

This mail is an automated notification from the bugs tracker
 of the project: classpath.

/**************************************************************************/
[bugs #6067] Latest Modifications:

Changes by: 
                Sven de Marothy <address@hidden>
'Date: 
                Sun 08/01/2004 at 23:13 (Europe/Stockholm)

------------------ Additional Follow-up Comments ----------------------------
Fixed.






/**************************************************************************/
[bugs #6067] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=6067>
Project: classpath
Submitted by: Sascha Brawer
On: Mon 10/20/2003 at 10:08

Category:  None
Severity:  3 - Ordinary
Resolution:  Fixed
Assigned to:  None
Status:  Closed
Platform Version:  None


Summary:  java.awt.geom.RoundRectangle2D.intersects partially wrong

Original Submission:  The implementation of the intersects method in 
java.awt.geom.RoundRectangle2D sometimes returns the wrong values.

The attached Mauve test case succeeds on Sun J2SE 1.4.1_01, but fails on 
Classpath. I've just submitted this test case to address@hidden The enclosed 
image (gnu/testlet/java/awt/geom/RoundRectangle2D/doc-files/intersects-1.png) 
illustrates the expected results.

For rectangles #10, 11, 12, 16, 20, 23, 27, 30, 34, 38, 39, and 40, the current 
classpath implementation returns false. However, true would be the correct 
result.

Follow-up Comments
------------------


-------------------------------------------------------
Date: Sun 08/01/2004 at 23:13       By: smarothy
Fixed.

-------------------------------------------------------
Date: Sun 08/01/2004 at 23:13       By: smarothy
Fixed.

-------------------------------------------------------
Date: Thu 07/29/2004 at 20:55       By: mark
This bug is now also tracked in GCC AWT bugzilla:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16823

-------------------------------------------------------
Date: Wed 01/07/2004 at 10:00       By: brawer
Please use a fixed-with font for looking at the ASCII art in my previous 
comment.

-------------------------------------------------------
Date: Wed 01/07/2004 at 09:58       By: brawer
Test case is in Mauve.

The current Classpath implementation says in a comment: "Here we can use the 
same code we use for an ordinary rectangle." This is wrong, because 
RoundRectangle2D is, well, rounded :-)

The implementation should cover the case where the intersection is only in the 
rounded corners, as in:

          |
-------  |
         
          -------
          
           |
           
In this case, the method should return false.




CC List
-------

CC Address                          | Comment
------------------------------------+-----------------------------
mkoch                               | 
tromey                              | 



File Attachments
-------------------

-------------------------------------------------------
Date: Mon 10/20/2003 at 10:08  Name: RoundRectangle2D.tar.gz  Size: 6.62KB   
By: brawer
Mauve test case, including illustrations of expected results
http://savannah.gnu.org/bugs/download.php?item_id=6067&amp;item_file_id=730






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=6067>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]