Skip to content

VNA00J doesn't compute unprotected accesses of methods correctly #34

Description

@reprogrammer

The detector of VNA00J fails to report the bug instance in the following piece of code.

public class A {

    Object o = new Object();

    @EntryPoint
    public static void main(String args[]) {
        new A().m1();
    }

    void m1() {
        /* [VNA00J,01 */synchronized (new Object()) {
            m2();
        }/* ] */
    }

    void m2() {
        o = new A();
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions