Merge pull request #23890 from dmatej/opendj-fix

Fixed compatibility of OpenDJ with JDK17