JDK-7034291 : Regression : Preedit String on active client is committed into unexpected component
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2011-04-06
  • Updated: 2011-06-30
  • Resolved: 2011-06-30
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
7 b142Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
SYNOPSIS
--------
Preedit String on active client is committed into unexpected component

OPERATING SYSTEM
----------------
Windows XP SP3 (Japanese)

FULL JDK VERSION
----------------
JDK 7 from b55 onwards
Does not occur with Java 6

DESCRIPTION
-----------
Preedit String on active client is committed into unexpected component.
Because of this problem, unexpected preedit string is remaining into active client.

The problem occurs from JDK7 b55 onwards. It does not happen with b54 and earlier. We suspect that the regression may be related to the fix for CR 6806217.

REPRODUCTION INSTRUCTIONS
-------------------------
 1. Download IMFDemo sample programs from following URL:
      http://download.oracle.com/javase/1.3/docs/guide/imf/api-tutorial.html
 2. Compile and run IMFDemo
      > javac *.java
      > java IMFDemo
 3. Move input focus to "Lightweight component, active client"
 4. Turn on Japanese IME and type "ai" (Japanese AI is displayed)
 5. Move input focus to "Lightweight component, passive client",
    Japanese "AI" is committed into active client
 6. Move input focus to "Lightweight component, active client"
 7. Type "ai" (Japanese AI is displayed)
 8. Move input focus to "Peered component",
    Japanese "AI" is committed into Peered component <== UNEXPECTED
 9. Move input focus to "Lightweight component, active client"
10. Press Backspace key to remove preedit string, but nothing happens <== UNEXPECTED

WORKAROUND
----------
None known.

Comments
EVALUATION The root cause of the problem is that the IME messages might be dispatched to the wrong component during the focus switch.
28-04-2011

SUGGESTED FIX http://sa.sfbay.sun.com/projects/awt_data/7/7034291/
28-04-2011

EVALUATION I am assigning the issue to an engeener that is working on other IME CR now.
13-04-2011