Applying patch for PR 267690 (java/openjdk*)

From: Osipov, Michael (LDA IT PLM 2) <michael.osipov_at_siemens.com>
Date: Mon, 12 Dec 2022 09:52:01 UTC
Folks,

can your some look at my patch for PR 267690? Fully tested and 
described. The patch is for OpenJDK 8 for now, but supply for 11 and 17 
as well since the issue is present there too.

Regards,

Michael