Clojure core uses and auto imports deprecated JDK classes

Description

As of Java 20, some classes have been deprecated. We should stop using or auto importing those before they are removed. To get a report of this and other deprecated apis, install Java 20 (or latest) and run:

Example deprecated class issues in 1.12.0-alpha3:

As existing Clojure code may be relying on these imported classes, we should consider our options to gracefully degrade here. This does not become crucial until the classes are actually removed at some future point.

Environment

None

Activity

Show:

Alex Miller December 19, 2024 at 8:03 PM

should re-run for at least Java 21 (maybe up to Java 24 so we know)

Details

Assignee

Reporter

Approval

Vetted

Priority

Affects versions

Fix versions

Created May 30, 2023 at 5:32 PM
Updated January 21, 2025 at 8:23 PM