-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P5
-
Affects Version/s: 1.4.2
-
Component/s: client-libs
FULL PRODUCT VERSION :
java version "1.4.2_04"
ADDITIONAL OS VERSION INFORMATION :
windows xp version 2002 service pack 2
A DESCRIPTION OF THE PROBLEM :
There is an error in documentation of "Class GraphicsConfiguration" rather than a bug;
under explainations of "getNormalizingTransform()" mothod there is 3
lines of sample code as following:
GraphicsConfiguration gc = g.getGraphicsConfiguration();
g.setTransform(gc.getDefaultTransform());
g.transform(gc.getNormalizingTransform());
Error is here: g.getGraphicsConfiguration();
such a method doesn't exists in Graphics2D class at all, the right one is
getDeviceConfiguration().
Regards.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.4.2_04"
ADDITIONAL OS VERSION INFORMATION :
windows xp version 2002 service pack 2
A DESCRIPTION OF THE PROBLEM :
There is an error in documentation of "Class GraphicsConfiguration" rather than a bug;
under explainations of "getNormalizingTransform()" mothod there is 3
lines of sample code as following:
GraphicsConfiguration gc = g.getGraphicsConfiguration();
g.setTransform(gc.getDefaultTransform());
g.transform(gc.getNormalizingTransform());
Error is here: g.getGraphicsConfiguration();
such a method doesn't exists in Graphics2D class at all, the right one is
getDeviceConfiguration().
Regards.
REPRODUCIBILITY :
This bug can be reproduced always.