harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r466070 - in /incubator/harmony/enhanced/classlib/trunk/modules/awt: build.xml src/main/java/common/java/awt/Dimension.java
Date Fri, 20 Oct 2006 11:35:54 GMT
Author: mloenko
Date: Fri Oct 20 04:35:53 2006
New Revision: 466070

URL: http://svn.apache.org/viewvc?view=rev&rev=466070
Log:
applied patch from HARMONY-1496
[classlib][awt] Dimension.setSize(double, double) rounding algorithm differs from RI

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/awt/build.xml
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dimension.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/build.xml
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/build.xml?view=diff&rev=466070&r1=466069&r2=466070
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/build.xml (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/build.xml Fri Oct 20 04:35:53 2006
@@ -293,7 +293,6 @@
                     <exclude name="java/awt/AccessibleAWTMenuItemTest.java"/>
                     <exclude name="java/awt/AccessibleAWTWindowTest.java"/>
                     <exclude name="java/awt/FileDialogTest.java"/>
-                    <exclude name="java/awt/DimensionTest.java"/>
                     <exclude name="java/awt/FlowLayoutTest.java"/>
                     <exclude name="java/awt/GridBagLayoutTest.java"/>
                     <exclude name="java/awt/GridLayoutTest.java"/>

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dimension.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dimension.java?view=diff&rev=466070&r1=466069&r2=466070
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dimension.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Dimension.java
Fri Oct 20 04:35:53 2006
@@ -83,7 +83,7 @@
 
     @Override
     public void setSize(double width, double height) {
-        setSize((int)Math.round(width), (int)Math.round(height));
+        setSize((int)Math.ceil(width), (int)Math.ceil(height));
     }
 
     public Dimension getSize() {



Mime
View raw message