You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/10/13 11:33:35 UTC

[jira] Created: (HARMONY-1860) [classlib][awt] Empty Area returns NULL instead of PathIterator

[classlib][awt] Empty Area returns NULL instead of PathIterator
---------------------------------------------------------------

                 Key: HARMONY-1860
                 URL: http://issues.apache.org/jira/browse/HARMONY-1860
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko


Harmony implementation of Area returns null instead of PathIterator if Area is empty.

============== Test =================
import java.awt.geom.Area;

public class Test {
    static public void main(String[] args) {
        System.out.println(new Area().getPathIterator(null));
    }
}
=========== RI ==================
java.awt.geom.AreaIterator@2ccfd5

========== Harmony =============
null




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-1860) [classlib][awt] Empty Area returns NULL instead of PathIterator

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1860?page=all ]

Nathan Beyer reassigned HARMONY-1860:
-------------------------------------

    Assignee: Nathan Beyer

> [classlib][awt] Empty Area returns NULL instead of PathIterator
> ---------------------------------------------------------------
>
>                 Key: HARMONY-1860
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1860
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Nathan Beyer
>         Attachments: HARMONY-1860-Area.patch, HARMONY-1860-AreaTest.patch
>
>
> Harmony implementation of Area returns null instead of PathIterator if Area is empty.
> ============== Test =================
> import java.awt.geom.Area;
> public class Test {
>     static public void main(String[] args) {
>         System.out.println(new Area().getPathIterator(null));
>     }
> }
> =========== RI ==================
> java.awt.geom.AreaIterator@2ccfd5
> ========== Harmony =============
> null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-1860) [classlib][awt] Empty Area returns NULL instead of PathIterator

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1860?page=all ]

Nathan Beyer resolved HARMONY-1860.
-----------------------------------

    Resolution: Fixed

I've applied a modified version of the patch. I made the inner class static and private and fixed the typos in the exception messages.

Please verify that everything looks as expected.

Thanks.

> [classlib][awt] Empty Area returns NULL instead of PathIterator
> ---------------------------------------------------------------
>
>                 Key: HARMONY-1860
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1860
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Nathan Beyer
>         Attachments: HARMONY-1860-Area.patch, HARMONY-1860-AreaTest.patch
>
>
> Harmony implementation of Area returns null instead of PathIterator if Area is empty.
> ============== Test =================
> import java.awt.geom.Area;
> public class Test {
>     static public void main(String[] args) {
>         System.out.println(new Area().getPathIterator(null));
>     }
> }
> =========== RI ==================
> java.awt.geom.AreaIterator@2ccfd5
> ========== Harmony =============
> null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1860) [classlib][awt] Empty Area returns NULL instead of PathIterator

Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1860?page=comments#action_12442605 ] 
            
Denis Kishenko commented on HARMONY-1860:
-----------------------------------------

Verified, thanks a lot for correction.

> [classlib][awt] Empty Area returns NULL instead of PathIterator
> ---------------------------------------------------------------
>
>                 Key: HARMONY-1860
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1860
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Nathan Beyer
>         Attachments: HARMONY-1860-Area.patch, HARMONY-1860-AreaTest.patch
>
>
> Harmony implementation of Area returns null instead of PathIterator if Area is empty.
> ============== Test =================
> import java.awt.geom.Area;
> public class Test {
>     static public void main(String[] args) {
>         System.out.println(new Area().getPathIterator(null));
>     }
> }
> =========== RI ==================
> java.awt.geom.AreaIterator@2ccfd5
> ========== Harmony =============
> null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1860) [classlib][awt] Empty Area returns NULL instead of PathIterator

Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1860?page=all ]

Denis Kishenko updated HARMONY-1860:
------------------------------------

    Attachment: HARMONY-1860-Area.patch

patch

> [classlib][awt] Empty Area returns NULL instead of PathIterator
> ---------------------------------------------------------------
>
>                 Key: HARMONY-1860
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1860
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: HARMONY-1860-Area.patch, HARMONY-1860-AreaTest.patch
>
>
> Harmony implementation of Area returns null instead of PathIterator if Area is empty.
> ============== Test =================
> import java.awt.geom.Area;
> public class Test {
>     static public void main(String[] args) {
>         System.out.println(new Area().getPathIterator(null));
>     }
> }
> =========== RI ==================
> java.awt.geom.AreaIterator@2ccfd5
> ========== Harmony =============
> null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1860) [classlib][awt] Empty Area returns NULL instead of PathIterator

Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1860?page=all ]

Denis Kishenko updated HARMONY-1860:
------------------------------------

    Attachment: HARMONY-1860-AreaTest.patch

test

> [classlib][awt] Empty Area returns NULL instead of PathIterator
> ---------------------------------------------------------------
>
>                 Key: HARMONY-1860
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1860
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: HARMONY-1860-Area.patch, HARMONY-1860-AreaTest.patch
>
>
> Harmony implementation of Area returns null instead of PathIterator if Area is empty.
> ============== Test =================
> import java.awt.geom.Area;
> public class Test {
>     static public void main(String[] args) {
>         System.out.println(new Area().getPathIterator(null));
>     }
> }
> =========== RI ==================
> java.awt.geom.AreaIterator@2ccfd5
> ========== Harmony =============
> null

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira