Skip to content

constructor control for JVM - #1052

Open
jeroenvandijk wants to merge 10 commits into
babashka:masterfrom
jeroenvandijk:jvm-constructors-control
Open

constructor control for JVM#1052
jeroenvandijk wants to merge 10 commits into
babashka:masterfrom
jeroenvandijk:jvm-constructors-control

Conversation

@jeroenvandijk

@jeroenvandijk jeroenvandijk commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Please answer the following questions and leave the below in as part of your PR.

Some notes

  • I haven't implement the deny option like instance-method. Should we? => Yes
  • I've copied the :cljd implementation for :clj branch. Not sure if there is much to refactor here since it is not exaclty the same.
  • the :cljs branch has an interesting note: deprecate :constructor option (link)

@jeroenvandijk

Copy link
Copy Markdown
Contributor Author
  • Ok now with seperate access control for constructors (similar to :static-methods). Not implemented yet for :cljd and :cljs.
  • There is only a top level :closed for constructors so there is one unnecessary check by using (interop/member-disposition ctor class-opts nil)

@borkdude

borkdude commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

why is there only one top level :closed for constructors?

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.

2 participants