cursive-ide/cursive

Invalid warning when java method name overlaps field

Opened this issue · 0 comments

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.