harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-1880) [classlib][awt] Area.createTransformedArea(..) throws NPE if Area is empty
Date Thu, 19 Oct 2006 03:34:36 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1880?page=all ]

Nathan Beyer reassigned HARMONY-1880:
-------------------------------------

    Assignee: Nathan Beyer

> [classlib][awt] Area.createTransformedArea(..) throws NPE if Area is empty
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-1880
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1880
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Assigned To: Nathan Beyer
>         Attachments: HARMONY-1880-Area.patch, HARMONY-1880-AreaTest.patch
>
>
> Harmony implementation of Area.createTransformedArea(AffineTransform) throws NPE if Area
is empty while RI doesn't. Spec doesn't say about any exceptions.
> ================= Test ====================
> import java.awt.geom.AffineTransform;
> import java.awt.geom.Area;
> public class Test{
>         static public void main(String[] args) 
>         {
>                 AffineTransform t = AffineTransform.getScaleInstance(2, 3);
>                 Area area = new Area();
>                 Area returnValue = area.createTransformedArea(t);
>                 System.out.println(returnValue);
>         }
> }
> ============= RI ===========
> java.awt.geom.Area@2ce48b
> ========== Harmony ========
> java.lang.NullPointerException
>     at java.awt.geom.Area.<init>(Area.java:68)
>     at java.awt.geom.Area.createTransformedArea(Area.java:200)

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