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-1880) [classlib][awt] Area.createTransformedArea(..) throws NPE if Area is empty
Date Mon, 16 Oct 2006 14:11:35 GMT
[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


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