Skip to content

Offer Class/new quick fixes for ambiguous constructor calls #3100

@cmf

Description

@cmf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    changedMarks issues describing changes to existing featuresreleased-eapMarks issues which have had the fixes released in an EAP build

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions