Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by
closed by

As of Java 9, Class.newInstance() has been deprecated (see https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/lang/Class.html#newInstance() ). These calls can be replaced with a call to clazz.getDeclaredConstructor().newInstance(). The reason for the deprecation is that that path bypasses compile-time exception checking. Not a big deal, but better to fix this in case it's removed in the future.

There are two cases of this in Clojure - one in Compiler and one in FnLoaderThunk (no longer used). Patch changes both.

Patch: clj-2492.patch

closed with the note: Fixed in Clojure 1.10.2

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-2492 (reported by alexmiller)
...