Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid warning when java method name overlaps field #2956

Open
rbcek opened this issue Sep 13, 2024 · 0 comments
Open

Invalid warning when java method name overlaps field #2956

rbcek opened this issue Sep 13, 2024 · 0 comments

Comments

@rbcek
Copy link

rbcek commented Sep 13, 2024

Given following java class:

public class Foo {
    public String bar;

    public void bar(String bar) {
        this.bar = bar;
    }
}

the following call in clojure:

(ns org.example.main
  (:import (org.example Foo)))

(.bar (Foo.))

Will generate warning Incorrect arity 0 for org.example.Foo.bar.

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

No branches or pull requests

1 participant