Summary
Cursive now offers a quick fix for ambiguous constructor calls written with the classic Class. syntax when Clojure's Class/new constructor syntax is available.
Details
For ambiguous calls such as (String. (Object.)), Cursive keeps the existing warning but now offers conversion fixes for each matching overload, e.g. Convert to String/new with param tags [StringBuffer].
Applying a fix converts the constructor call to Class/new and adds the selected param tags so the overload is explicit. The fix is only offered for valid ambiguous constructor calls, not for non-constructor interop calls or calls with the wrong arity.
Summary
Cursive now offers a quick fix for ambiguous constructor calls written with the classic
Class.syntax when Clojure'sClass/newconstructor syntax is available.Details
For ambiguous calls such as
(String. (Object.)), Cursive keeps the existing warning but now offers conversion fixes for each matching overload, e.g.Convert to String/new with param tags [StringBuffer].Applying a fix converts the constructor call to
Class/newand adds the selected param tags so the overload is explicit. The fix is only offered for valid ambiguous constructor calls, not for non-constructor interop calls or calls with the wrong arity.