Skip to content

Java synchronized blocks don't throw NullPointerException #1236

Open
@reuk

Description

@reuk

The docs for the Java monitorenter instruction say that NullPointerException should be thrown if the argument to the synchronized block is null.

It seems like the current behaviour is to ignore monitorenter and monitorexit (according to #186), which leads to inaccurate results. I suggest that the exception-throwing behaviour is modelled, even if the thread-synchronization itself is not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions