The javax.crypto.ExemptionMechanism.finalize() method is not available in Java SE 11.
javax.crypto.ExemptionMechanism.finalize()
For more information, see Java 9 Removed APIs, Features, and Options.