vert.x icon indicating copy to clipboard operation
vert.x copied to clipboard

refactor: migrate usages of the Provider class

Open yeikel opened this issue 2 years ago • 3 comments

The constructor we are using was deprecated in Java 9


 /**
     * Constructs a provider with the specified name, version number,
     * and information. Calling this constructor is equivalent to call the
     * {@link #Provider(String, String, String)} with {@code name}
     * name, {@code Double.toString(version)}, and {@code info}.
     *
     * @param name the provider name.
     *
     * @param version the provider version number.
     *
     * @param info a description of the provider and its services.
     *
     * @deprecated use {@link #Provider(String, String, String)} instead.
     */

yeikel avatar Feb 07 '24 02:02 yeikel

But jdk1.8 only has original version of api. ref: https://docs.oracle.com/javase/8/docs/api/java/security/Provider.html And vertx is support JDK 1.8 or higher. ref: https://vertx.io/get-started/ Is it safe to do this?

zll600 avatar Apr 21 '24 13:04 zll600

But jdk1.8 only has original version of api. ref: https://docs.oracle.com/javase/8/docs/api/java/security/Provider.html And vertx is support JDK 1.8 or higher. ref: https://vertx.io/get-started/ Is it safe to do this?

Vert.x 5 will target Java 11

yeikel avatar Apr 22 '24 10:04 yeikel

thanks , there are a few occurrences of this in other classes:

  • KeyManagerFactoryWrapper
  • TrustAllOptions
  • VertxTrustManagerFactory

vietj avatar Apr 22 '24 14:04 vietj