Skip to content

Function interface vs. Constructable #1376

@rbri

Description

@rbri

While working on the Proxy support i stumbled over some places where we check for instanceof Function and then casting to Function but only calling the construct method on the casted object. This is a problem if we are working with Lambda constructors because they are only implementing Constructable.

What do you think - should we change at least the places where Constructable is sufficient (guess ~5 palces)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions