You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Loenko (JIRA)" <ji...@apache.org> on 2006/10/20 13:12:52 UTC
[jira] Assigned: (HARMONY-1572) [classlib][awt] If Polygon is empty
then PathIterator.isDone() returns FALSE while RI returns TRUE
[ http://issues.apache.org/jira/browse/HARMONY-1572?page=all ]
Mikhail Loenko reassigned HARMONY-1572:
---------------------------------------
Assignee: Mikhail Loenko
> [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
> Assigned To: Mikhail Loenko
> Attachments: 1572-Polygon.patch
>
>
> 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