Skip to content

Add gen-class section to Java interop page#737

Open
kovan wants to merge 1 commit intoclojure:masterfrom
kovan:docs/gen-class-interop
Open

Add gen-class section to Java interop page#737
kovan wants to merge 1 commit intoclojure:masterfrom
kovan:docs/gen-class-interop

Conversation

@kovan
Copy link

@kovan kovan commented Mar 14, 2026

Adds a brief gen-class section to the Java interop reference page under "Implementing Interfaces and Extending Classes". Previously gen-class was only mentioned in passing (one sentence) despite being a core Java interop mechanism.

The new section includes:

  • A short description of when gen-class is needed vs proxy/reify
  • A minimal :gen-class + -main example
  • A link to the compilation reference for the full option list and detailed examples

Verified against clojure/genclass.clj: the gen-class macro docstring confirms "When not compiling, does nothing."

Fixes #690

Add a brief section about gen-class to the Implementing Interfaces
and Extending Classes area of the Java interop reference. Includes a
minimal example using :gen-class in the ns macro and links to the
compilation reference for the full option list.

Verified against clojure/genclass.clj: "When not compiling, does
nothing" confirms the doc statement that gen-class is ignored when
loading source directly.

Fixes clojure#690
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.

Include gen-class in Java interop page

1 participant