Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Added patch (See java/src/lockfix) to work around the issue - http…
…s://dev.clojure.org/jira/browse/CLJ-1472 2. Added make file with command 'apply-patch' to compile the patch with clojure-1.10.0 in classpath 3. Added cli-matic as dependency to support this app as a command line app
- Loading branch information
1 parent
c192c75
commit 9544ea3
Showing
5 changed files
with
80 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SHELL := /usr/bin/env bash -e | ||
|
||
apply-patch: | ||
javac ./java/src/lockfix/LockFix.java -cp ~/.m2/repository/org/clojure/clojure/1.10.0/clojure-1.10.0.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package lockfix; | ||
|
||
import clojure.lang.IFn; | ||
|
||
public class LockFix { | ||
static public Object lock(final Object lockee, final IFn f) { | ||
synchronized (lockee) { | ||
return f.invoke(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.