Skip to content

Properly implement Interface Method Dispatch from Runtime #31

Open
@dzagieboylo

Description

@dzagieboylo

There is a function in jni_help.h (CallJavaInterfaceMethod) that allows runtime code to call methods which are defined as interface methods (and therefore are not in a class' CDV). The normal functions for calling methods doesn't delegate to this in the case where the method is an interface method.

In order to correctly call methods in general from runtime, we need to 1) check if the method is defined in an interface and then 2) use CallJavaInterfaceMethod to call it.

This isn't terribly important since it is not a common case and currently doesn't prevent our test suites from passing, but should be done at some point to enable any method to be called via runtime code easily.

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