[Top][All Lists]

[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>
                Thu 07/29/04 at 20:55 (Europe/Amsterdam)

------------------ Additional Follow-up Comments ----------------------------
This bug is now also tracked in GCC AWT bugzilla:

[bugs #6067] Full Item Snapshot:

URL: <>
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 

Follow-up Comments

Date: Thu 07/29/04 at 20:55         By: mark
This bug is now also tracked in GCC AWT bugzilla:

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 

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: 
Mauve test case, including illustrations of expected results;item_file_id=730

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

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