-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.1
-
generic
-
generic
Name: vi73552 Date: 04/11/99
In package java.awt.Dimension, setSize does not set the size of the Dimension object:
public void setSize(double width, double height) {
width = (int) Math.ceil(width);
height = (int) Math.ceil(height);
}
The code should be corrected to:
public void setSize(double width, double height) {
this.width = (int) Math.ceil(width);
this.height = (int) Math.ceil(height);
}
(Review ID: 56804)
======================================================================
- duplicates
-
JDK-4189446 java.awt.Dimension.setSize(double,double) does not work.
-
- Closed
-