Skip to content

Support JDK 19's Thread/sleep#16

Open
frenchy64 wants to merge 1 commit intobraveclojure:masterfrom
frenchy64:jdk-19-sleep
Open

Support JDK 19's Thread/sleep#16
frenchy64 wants to merge 1 commit intobraveclojure:masterfrom
frenchy64:jdk-19-sleep

Conversation

@frenchy64
Copy link

JDK 19 doesn't like this:

(Thread/sleep (rand 100))
;Execution error (IllegalArgumentException) at async-alts.core/eval11621 (form-init13060262411934958877.clj:1).
;No matching method sleep found taking 1 args

There is a new method that Clojure can't disambiguate: https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/lang/Thread.html#sleep(java.time.Duration)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant