JRE-988 backport JRE-981: IM workaround does not work anymore

(cherry picked from commit 2d7c29b0abab252167399fb41eb04689d3a4f2f6)
1 file changed