harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1572) [classlib][awt] If Polygon is empty then PathIterator.isDone() returns FALSE while RI returns TRUE
Date Mon, 25 Sep 2006 15:29:51 GMT
[classlib][awt] If Polygon is empty then PathIterator.isDone() returns FALSE while RI returns
TRUE
--------------------------------------------------------------------------------------------------

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


Behaviour of Harmony implementation of Polygon. PathIterator differs from RI.
If Polygon is empty RI PathIterator.isDone() returns TRUE while Harmony returns FALSE.

============= Test.java ==============

import java.awt.geom.GeneralPath;
import java.awt.geom.PathIterator;
import java.awt.Polygon;

public class bug9560  
{
    static public void main(String[] args)
    { 
        Polygon p = new Polygon(new int[10], new int[10], 0);
        PathIterator path = p.getPathIterator(null);
        System.out.println(path.isDone());
    }
        
}

========== RI ===============
true

======= Harmony ============
false


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

        

Mime
View raw message