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: Mark Wielaard
Subject: [commit-cp] [bugs #6067] java.awt.geom.RoundRectangle2D.intersects partially wrong
Date: Thu, 29 Jul 2004 17:06:57 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Galeon/1.3.15 (Debian package 1.3.15-2)

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

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

Changes by: 
                Mark Wielaard <address@hidden>
'Date: 
                Thu 07/29/04 at 20:55 (Europe/Amsterdam)

------------------ Additional Follow-up Comments ----------------------------
This bug is now also tracked in GCC AWT bugzilla:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16823






/**************************************************************************/
[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/03 at 10:08

Category:  None
Severity:  3 - Ordinary
Resolution:  None
Assigned to:  None
Status:  Analyzed
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: Thu 07/29/04 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/04 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/04 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/03 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]