Skip to content

fix(symbol): arity-1 symbol takes a keyword instead of throwing - #44

Merged
skydread1 merged 1 commit into
maint-1.11.xfrom
fix/symbol-on-keyword
Sep 4, 2026
Merged

fix(symbol): arity-1 symbol takes a keyword instead of throwing#44
skydread1 merged 1 commit into
maint-1.11.xfrom
fix/symbol-on-keyword

Conversation

@skydread1

Copy link
Copy Markdown
Member

Closes #43

  • Keyword.Symbol is public, so the arity-1 symbol call site in core.clj binds it
  • test-symbol covers a simple keyword, a namespaced keyword, a symbol and a string

Backport of CLJCLR-145 (86578fc), taken unchanged.

core.clj reads Keyword.Symbol through a dynamic call site, and
ClojureGetZeroArityMemberBinder looks up members with BindingFlags.Public
only, so an internal property returns no match and (symbol :foo) throws
MissingMethodException.

Closes #43
@skydread1 skydread1 self-assigned this Sep 4, 2026
@skydread1
skydread1 merged commit 77fca2a into maint-1.11.x Sep 4, 2026
3 checks passed
@skydread1
skydread1 deleted the fix/symbol-on-keyword branch September 4, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(symbol :kw) throws MissingMethodException instead of returning the keyword's symbol

1 participant