Skip to content

Commit eb10a20

Browse files
committed
Update to Java commit 09c3766 (2017.04.25): Fix test failure to load nio.file.Files on JDK 1.6.
No-op on CLR. Just updating source file.
1 parent 912c757 commit eb10a20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/clojure/tools/namespace/dir_test.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
(.invoke to-file link (object-array 0))))
2626

2727
;; Only run this test on Java 1.7+, where java.nio.file.Files is available.
28-
#_(when (Class/forName "java.nio.file.Files")
28+
#_(when (try (Class/forName "java.nio.file.Files")
29+
(catch ClassNotFoundException _ false))
2930
(deftest t-scan-by-canonical-path
3031
(let [dir (help/create-temp-dir "t-scan-by-canonical-path")
3132
main-clj (help/create-source dir 'example.main :clj '[example.one])

0 commit comments

Comments
 (0)