Skip to content

CHA missed an invocation about interface #1391

Open
@kitty-1998

Description

Hi, I found a code example which may help improve Wala. See the minimized code example below:

package edu.kitty;
public class Main {
    public static void main(String[] args) {
        Inner i = (a) -> a%7;
        System.out.println(i.bar(1));
    }
    interface Inner {
        int bar(int a);
    }
}

The method main called bar and call graph should have this edge, but I used CHA algorithm to construct the call graph and found no callee target of main.

My Wala version: 1.6.4

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