JDK-7082950 : SwingSet2 demo's translated property files broken
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2011-08-24
  • Updated: 2013-11-18
  • Resolved: 2012-03-19
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.
JDK 7
7u4 b13Fixed
Related Reports
Relates :  
Description
SYNOPSIS
--------
SwingSet2 demo's translated property files broken

OPERATING SYSTEM
----------------
Japanese Windows XP SP3

FULL JDK VERSION
----------------
Java 7 (~b138 onwards)

PROBLEM DESCRIPTION from LICENSEE
---------------------------------
SwingSet2 demo's translated property files (swingset2_ja.properties and swingset_zh_CN.properties) and broken. There are two problems:

1. Unexpected "~" characters
2. HTML text is truncated

REPRODUCTION INSTRUCTIONS
-------------------------
Note that these instructions highlight the problems in the Japanese property file (swingset2_ja.properties), but the Chinese property file (swingset_zh_CN.properties) seems to have similar issues.

PROBLEM 1
---------
1. On Japanese Windows XP, run ListDemo on SwingSet2.jar from Command Prompt
   > jre\bin\java -cp demo\jfc\SwingSet2\SwingSet2.jar ListDemo

2. Check translated strings on top, you may see two extra "~" characters

3. Move focus to Command Prompt and press Ctrl+C

4. On Japanese Windows XP, run OptionPaneDemo on SwingSet2.jar from Command Prompt
   > jre\bin\java -cp demo\jfc\SwingSet2\SwingSet2.jar OptionPaneDemo

5. Press "Show Warning Dialog" button (2nd one)

6. Check translated strings, you may see two extra "~" characters

7. Move focus to Command Prompt and press Ctrl+C

PROBLEM 2
---------
1. On Japanese Windows XP, run ToolTipDemo on SwingSet2.jar from Command Prompt
   > jre\bin\java -Duser.language=en -cp demo\jfc\SwingSet2\SwingSet2.jar ToolTipDemo

2. Move mouse cursor on cow's body, you may see "In case you thought that ..."

3. Move focus to Command Prompt and press Ctrl+C to stop ToolTipDemo

4. On Japanese Windows XP, run ToolTipDemo on SwingSet2.jar from Command Prompt
   > jre\bin\java -cp demo\jfc\SwingSet2\SwingSet2.jar ToolTipDemo

5. Move mouse cursor on cow's body, you may see truncated translation

Comments
EVALUATION We will perform message update in 7u4. We will fix the reported issue at the same time.
22-12-2011