Skip to content

Error on synchronization on objects in Java #153

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

Closed
mgudemann opened this issue Jun 28, 2016 · 2 comments
Closed

Error on synchronization on objects in Java #153

mgudemann opened this issue Jun 28, 2016 · 2 comments

Comments

@mgudemann
Copy link
Contributor

This example fails with unexpected statement: monitorenter

public class monitorenter1
{
  public boolean doIt(boolean b)
  {
    boolean a;
    synchronized(this) {
      a = !b;
    }
    return a;
  }
  public void test()
  {
    assert(doIt(false));
  }
}

the critical section is enclosed between monitorenter and monitorexit in the bytecode.

@kroening
Copy link
Member

Added as regression/cbmc-java/monitorenter1

smowton pushed a commit to smowton/cbmc that referenced this issue May 9, 2018
Improved error messages for bad command line
@peterschrammel
Copy link
Member

fixed

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

No branches or pull requests

3 participants