harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-1570) [classlibl][awt] RI considers that negative rectangle is contained inside empty GeneralPath
Date Mon, 19 Feb 2007 13:37:06 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Petrenko closed HARMONY-1570.
------------------------------------

    Resolution: Won't Fix
      Assignee: Alexey Petrenko

Closed as non-bug difference.

> [classlibl][awt] RI considers that negative rectangle is contained inside empty GeneralPath
> -------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1570
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1570
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>            Reporter: Denis Kishenko
>         Assigned To: Alexey Petrenko
>
> RI implementation of GeneralPath.contains(x, y, width, height) returns true if input
width and height are negative and GeneralPath is empty. It's absolutely illogical.
> =========== Test.java ===============
> import junit.framework.TestCase;
> import junit.textui.TestRunner;
> import java.awt.geom.GeneralPath;
> public class Test extends TestCase {
>         public void testcase0() { 
>                 GeneralPath p = new GeneralPath();
>                 assertTrue(p.contains(0, 0, -10, -10));
>         }
>         
>         static public void main(String[] args) {
>             TestRunner.run(Test.class);
>         }
> }
> ========= RI ===================.
> Time: 0,031
> OK (1 test)
> ======= Harmony ===============
> Time: 0.328
> There was 1 failure:
> 1) testcase0(Test)junit.framework.AssertionFailedError
>     at Test.testcase0(Test.java:10)
>     at java.lang.reflect.VMReflection.invokeMethod()
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0
> */

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