Skip to content

Commit 85e4de8

Browse files
committed
Fix reflection warnings when using clojure.core.async.go-checking
1 parent 176982a commit 85e4de8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Copyright © Rich Hickey and contributors
6565

6666
## Changelog
6767

68+
* next
69+
* Fix reflection warnings when using `clojure.core.async.go-checking`
6870
* Release 1.8.730 on 2025.04.02, effective changes since last non-beta release:
6971
* [ASYNC-256](https://clojure.atlassian.net/browse/ASYNC-256) (CLJ) Add `io-thread` and System property `clojure.core.async.executor-factory`
7072
* [ASYNC-260](https://clojure.atlassian.net/browse/ASYNC-260) (CLJ) Remove now unused property `clojure.core.async.pool-size`

src/main/clojure/clojure/core/async/impl/dispatch.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
[& body]
4444
(if (Boolean/getBoolean "clojure.core.async.go-checking")
4545
`(try
46-
(.set in-go-dispatch true)
46+
(.set ^ThreadLocal in-go-dispatch true)
4747
~@body
4848
(finally
49-
(.set in-go-dispatch false)))
49+
(.set ^ThreadLocal in-go-dispatch false)))
5050
`(do ~@body)))
5151

5252
(defn in-dispatch-thread?

0 commit comments

Comments
 (0)