We are running into issues when running Elasticsearch CI with java security turned on and using JDK11 (only for the ones that contains the jdk bug ). The errors look like:
The issue seems to be here:
As we now have a subclass that wants to run this code. Note that this code has been removed in JDK12 and above.
We might need to wrap the creation of this object in a doPriviledged Block or find a different solution that does not need to subclass the Deflater class.
cc: Uwe Schindler