Skip to content

Method ambiguity when LAMBDA is used #548

Open
@wysohn

Description

When LAMBDA expression is used, and there is an overloaded method where both the original and the overloaded method accepts the functional interface, then it cannot distinguish which one to use.

For example,

runTask(Plugin plugin, Runnable task)

and

runTask(Plugin plugin, Consumer<BukkitTask> task)

is overloaded method, and both Runnable and Consumer are functional interface. For now, I believe TRG always choose the first method if there are more than one method with the similar signature.

Metadata

Assignees

No one assigned

    Labels

    bugEntire or partly plugin is not working as intended.domain:compatibilityPlugin is not compatible with external systempackage:coreRelated to share domain nor script interpreterpriority:medium

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions