JDK-4670265 : 2x spaces printed in Component.list(PrintWriter, int)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2002-04-17
  • Updated: 2002-06-17
  • Resolved: 2002-04-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.1 hopperFixed
Related Reports
Relates :  
Description
In the fix for 4185460, Component.list(PrintStream out, int indent) was corrected to print out the number of spaces equal to the value of indent.  Before this fix, twice the number of spaces were printed.

Component.list(PrintWriter out, int indent) should have had a similar fix, but it was overlooked.  The same fix should apply to this method.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper FIXED IN: hopper INTEGRATED IN: hopper VERIFIED IN: hopper-beta
14-06-2004

SUGGESTED FIX ------- Component.java ------- *** /tmp/dsBaaSU Wed Apr 17 13:51:23 2002 --- Component.java Wed Apr 17 13:51:19 2002 *************** *** 6484,6490 **** */ public void list(PrintWriter out, int indent) { for (int i = 0 ; i < indent ; i++) { ! out.print(" "); } out.println(this); } --- 6484,6490 ---- */ public void list(PrintWriter out, int indent) { for (int i = 0 ; i < indent ; i++) { ! out.print(" "); } out.println(this); }
11-06-2004

EVALUATION Need same fix as Component.list(PrintStream, int). ###@###.### 2002-04-17 Verified in hopper b14. ###@###.### 2002-06-17
17-04-2002