Skip to content

Commit

Permalink
fix for JDK 21, which prioritizes "unnamed classes" error
Browse files Browse the repository at this point in the history
  • Loading branch information
jgpc42 committed Oct 22, 2023
1 parent 28a6916 commit 19a8587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jmh/java_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
(is (= [".Quux" ".Bar" ".Foo" ".Object"] @loads))))

(deftest test-compile-error
(let [srcs {"foo.quux" "packag foo; impor bar;"}]
(let [srcs {"foo.quux" "package foo.; import bar.;"}]
(is (thrown-with-msg? clojure.lang.ExceptionInfo
#"/foo/quux\.java: line 1: .+\n\.\.\. and 1 more$"
(java/compile srcs)))))

0 comments on commit 19a8587

Please sign in to comment.