You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nellya Udovichenko (JIRA)" <ji...@apache.org> on 2007/08/09 10:15:42 UTC

[jira] Commented: (HARMONY-4612) [classlib][awt] The method java.awt.geom.Area.contains() returns no correct result if the parameter is the vertex of rhomb

    [ https://issues.apache.org/jira/browse/HARMONY-4612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518659 ] 

Nellya Udovichenko commented on HARMONY-4612:
---------------------------------------------

Thank you, Alexey! Verified. Works fine.

> [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
>            Assignee: Alexey Petrenko
>         Attachments: H-4612-test.patch, H-4612.patch
>
>
> 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.