According to the Windows API reference, `dwStyle` of [`CANDIDATEFORM`](https://docs.microsoft.com/en-us/windows/win32/api/imm/ns-imm-candidateform) structure should be set to `CFS_CANDIDATEPOS` or `CFS_EXCLUDE`. So, `CFS_POINT` is wrong here.
There are two instances in `AwtComponent::SetCandidateWindow` in [`awt_Component.cpp`](https://github.com/openjdk/jdk/blob/f90425a1cbbc686045c87086af586e62f05f6c49/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp#L3914) where the incorrect value is used. I've created the PR for jdk18 as it's a low-risk fix. If it's inappropriate at this time, I'll open the PR for mainline jdk. ------------- Commit messages: - 8278472: Invalid value set to CANDIDATEFORM structure Changes: https://git.openjdk.java.net/jdk18/pull/54/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk18&pr=54&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8278472 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.java.net/jdk18/pull/54.diff Fetch: git fetch https://git.openjdk.java.net/jdk18 pull/54/head:pull/54 PR: https://git.openjdk.java.net/jdk18/pull/54