-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b14
-
x86
-
windows_2000
FULL PRODUCT VERSION :
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Solaris, Linux, Windows
A DESCRIPTION OF THE PROBLEM :
Inspection of the source code for the layoutRow() method of class FlowView.FlowStrategy reveals that the 2nd argument in the layoutRow()'s call to a view's getBreakWeight() is wrong.
A view's getBreakWeight() method expects the 2nd parameter to be an x-coordinate, not a document offset. However, layoutRow() supplies a document offset in the call.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just take a look at line number 478 of file javax/swing/text/FlowView.java in archive src.zip distributed by JDK 5.0.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The 2nd argument should be the local variable 'x' of the layoutRow() method.
REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 11/3/04 23:55 GMT
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Solaris, Linux, Windows
A DESCRIPTION OF THE PROBLEM :
Inspection of the source code for the layoutRow() method of class FlowView.FlowStrategy reveals that the 2nd argument in the layoutRow()'s call to a view's getBreakWeight() is wrong.
A view's getBreakWeight() method expects the 2nd parameter to be an x-coordinate, not a document offset. However, layoutRow() supplies a document offset in the call.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just take a look at line number 478 of file javax/swing/text/FlowView.java in archive src.zip distributed by JDK 5.0.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The 2nd argument should be the local variable 'x' of the layoutRow() method.
REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 11/3/04 23:55 GMT