Open multani opened 3 years ago
I agree that depending on sun.* packages should be fixed, but the proposed fix you uploaded doesn't actually test anything since you are just checking the interface which both are a part of SSL implementations use. Those tests will pass even when the incorrect implementation is passed.
This is not portable, and fails depending on the JVM used, see https://www.oracle.com/java/technologies/faq-sun-packages.html:
Also:
For some reason, the tests pass with the CircleCI Java Docker image; I tried with various combination of the JDK (dockerized Maven's
maven:3-openjdk-11
andmaven:3-openjdk-8
and the JDK from Oracle's own website) and none work.