<AWT Dev> RFR: JDK-8165232 XKeycodeToKeysym is deprecated and should be replaced with XkbKeycodeToKeysym

Alan Burlison Alan.Burlison at oracle.com
Tue Sep 6 21:03:00 UTC 2016

On 06/09/2016 21:42, Phil Race wrote:

> These are all internal-only entry points So if that exists (I did not
> know that it did) then I think you have a few options but the most
> forward looking is to get rid of all references to the deprecated
> methods and migrate all uses (inc. Java land ones) to the new code.

Thanks for the detail, doing as you suggest and migrating all the 
references seems like the best approach as it shouldn't require any 
followup work in the future. I'll make the changes you've suggested, 
retest and post an updated webrev when I've done so.

> The declaration in XlibWrapper.java would need to be deleted. And BTW
> if that is done then javac will helpfully find all the places that
> you need to fix .. assuming no use of reflection.

I've done a text search for "XKeycodeToKeysym" across all the repos, the 
only uses I've been able to find are normal calls.

Thanks for the help,

Alan Burlison

More information about the awt-dev mailing list