harmony-commits mailing list archives

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

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

Andrey Pavlenko commented on HARMONY-1570:
------------------------------------------

The link is broken, use this one instead http://mail-archives.apache.org/mod_mbox/harmony-dev/200609.mbox/%3c834b3bd50609250633k760014e7h847bd63df4a511f9@mail.gmail.com%3e

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