Skip to content

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

@reprogrammer

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();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions