harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nellya Udovichenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4612) [classlib][awt] The method java.awt.geom.Area.contains() returns no correct result if the parameter is the vertex of rhomb
Date Wed, 08 Aug 2007 13:43:00 GMT
[classlib][awt]  The method java.awt.geom.Area.contains() returns no correct result if the
parameter is the vertex of rhomb
---------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-4612
                 URL: https://issues.apache.org/jira/browse/HARMONY-4612
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Nellya Udovichenko


Test:

import java.awt.geom.Area;
import java.awt.geom.GeneralPath;

public class Test {

    public static void main(String[] args) throws Exception{
		
        GeneralPath path = new GeneralPath();
        path.moveTo(50, 100);
        path.lineTo(100, 50);
        path.lineTo(150, 100);
        path.lineTo(100, 150);
        path.closePath();
        
        Area area = new Area(path);
        
        if (!area.contains(100, 50)) {
        	System.out.println("PASSED");
        } else {
        	System.out.println("FAILED");
        }
    }       
}

RI output:
PASSED

Harmony output:
FAILED


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message