Skip to content

InterfaceInvocation.java:48-65: Interface Invocation Type... #366

@0pdd

Description

@0pdd

The puzzle 344-12d10f3d from #344 has to be resolved:

* @todo #344:90min Interface Invocation Type Inference
* We used to infer 'owner' of a interface method invocation from the {@link #source}.
* However it led to failed tests.
* <p> Here is how we did it:
* {@code
* final Typed owner = (Typed) this.source;
* res.add(
* new Opcode(
* Opcodes.INVOKEINTERFACE,
* owner.type().getClassName().replace('.', '/'),
* this.attrs.name(),
* this.attrs.descriptor(),
* this.attrs.interfaced()
* )
* );
* }
* </p>
* We should use the similar approach, but we also have to ensure that all the tests pass.

The puzzle was created by volodya-lombrozo on 06-Aug-24.

Estimate: 90 minutes, role: DEV.

If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions