-
Bug
-
Resolution: Fixed
-
P4
-
1.1, 1.1.5, 1.1.6
-
b01
-
x86, sparc
-
solaris_2.5.1, windows_95
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2016556 | 1.2.0 | David Mendenhall | P4 | Resolved | Fixed | 1.2beta3 |
Name: rlT66838 Date: 08/18/97
import java.awt.*;
public class PolygonError
{
public static void main(String[] args) {
Polygon p = new Polygon();
p.addPoint( 0,20);
p.addPoint( 0,25);
p.addPoint( 5,25);
p.addPoint( 5,20);
System.out.println("bounds=" +p.getBoundingBox());
// bounds width and height correct!
p.addPoint( 5,0);
System.out.println("bounds=" +p.getBoundingBox());
// now height is wrong (should be 25)
}
}
company - (Independent Consultant) , email - ###@###.###
======================================================================
- backported by
-
JDK-2016556 java.awt.Polygon.updateBounds(int x,int y) can incorrectly update the bounds.
-
- Resolved
-
- duplicates
-
JDK-4110960 Method Polygon.getBounds() returns incorrect value.
-
- Closed
-