Skip to content

Commit 97956bd

Browse files
committed
Update to Java commit 1d3f041 (2022.05.06): TNS-56 Don't consider :as-alias as a load-dependency for namespaces
1 parent 71aaaa7 commit 97956bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/clojure/clojure/tools/namespace/parse.cljc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
f))
9797
(rest form))
9898
(option-spec? form)
99-
(deps-from-libspec prefix (first form))
99+
(when-not (= :as-alias (second form))
100+
(deps-from-libspec prefix (first form)))
100101
(symbol? form)
101102
(list (symbol (str (when prefix (str prefix ".")) form)))
102103
(keyword? form) ; Some people write (:require ... :reload-all)

src/test/clojure/clojure/tools/namespace/parse_test.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
[four :refer (a b)]]
2626
[com.example.sub
2727
[five :as five]
28-
six])
28+
six
29+
[eleven :as-alias eleven]])
2930
(:use [com.example
3031
seven
3132
[eight :as eight]

0 commit comments

Comments
 (0)