You need to set "cfr" here
3877 cf.rcArea.left = cf.rcArea.top = cf.rcArea.right = cf.rcArea.bottom
= 0;
Regards
Prasanta
On 11/27/2017 2:56 PM, Sreeprakash Sreedharan wrote:
Hi,
Please review this webrev for JDK-8u backport.
Webrev:
http://cr.openjdk.java.net/~ssreedharan/8183504/jdk8u-dev/webrev.00/
<http://cr.openjdk.java.net/%7Essreedharan/8183504/jdk8u-dev/webrev.00/>
Main Bug: https://bugs.openjdk.java.net/browse/JDK-8183504
JDK10 review thread:
http://mail.openjdk.java.net/pipermail/awt-dev/2017-October/013155.html
JDK10 changeset: http://hg.openjdk.java.net/jdk/jdk/rev/fd3c961a89ec
The patch from JDK10 was not applied cleanly.
Changed,
cf.ptCurrentPos = {x, y};
cf.rcArea = {0, 0, 0, 0};
to
cf.ptCurrentPos.x = x;
cf.ptCurrentPos.y = y;
cf.rcArea.left = cf.rcArea.top = cf.rcArea.right = cf.rcArea.bottom = 0;
in two places.
CANDIDATEFORM ptCurrentPos and rcArea were assigned through
copy-list-initialization which is a C++ 11 feature.
This was giving compiler error for JDK8.
Regards,
Sreeprakash