Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit e242c25

Browse files
Merge pull request #2 from AdamClements/android
Fix ART verification errors in NREPL
2 parents cdca791 + 94dbedd commit e242c25

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/clj/clojure/core.clj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,11 +1531,15 @@
15311531
{:added "1.0"}
15321532
[x & body]
15331533
`(let [lockee# ~x]
1534-
(monitor-enter lockee#)
15351534
(try
1536-
~@body
1537-
(finally
1538-
(monitor-exit lockee#)))))
1535+
(monitor-enter lockee#)
1536+
(try
1537+
~@body
1538+
(finally
1539+
(try
1540+
(monitor-exit lockee#)
1541+
(catch Exception e# (throw (RuntimeException. (str "Failed to release the lock on " lockee#) e#))))))
1542+
(catch Exception e# (throw (RuntimeException. (str "Could not obtain a lock on " lockee#) e#))))))
15391543

15401544
(defmacro ..
15411545
"form => fieldName-symbol or (instanceMethodName-symbol args*)

0 commit comments

Comments
 (0)