Applying patch for PR 267690 (java/openjdk*)

From: Osipov, Michael (LDA IT IN) <michael.osipov_at_siemens.com>
Date: Tue, 28 Mar 2023 14:43:21 UTC
Folks,

another plea and look and apply 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