Skip to content

Invocation of a method within its class is considered as invocation of a stub method. #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LABSARI opened this issue Sep 8, 2022 · 0 comments

Comments

@LABSARI
Copy link

LABSARI commented Sep 8, 2022

public class T{
    private ArrayList data = new ArrayList();

    public boolean isEmpty() {
        ArrayList list = this.getData();
        return list.isEmpty();
    }

    private ArrayList getData() {
        return data;
    }
}

Given that class. In the generated model, the invocation of getData() in isEmpty() is considered as a call to a stub method getData().
The method getData() invoked in isEmpty() should be the one defined in the class, right ?
OS : MacOS
How I built the model with VerveineJ:

./verveinej.sh -o jexp.json -format json ../jexp/

The directory jexp has only one file: T.java

@LABSARI LABSARI changed the title Invocation of a method within its class is considered as stub. Invocation of a method within its class is considered as invocation of a stub method. Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant