File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,8 @@ public static void monitorenter(Object object)
122
122
{
123
123
//FIXME: we shoud remove the call to this method from the call
124
124
// stack appended to the thrown exception
125
- // if (object == null)
126
- // throw new NullPointerException();
125
+ if (object == null )
126
+ throw new NullPointerException ();
127
127
128
128
CProver .atomicBegin ();
129
129
// this assume blocks this execution path in JBMC and simulates
@@ -145,6 +145,9 @@ public static void monitorexit(Object object)
145
145
{
146
146
//FIXME: we shoud remove the call to this method from the call
147
147
// stack appended to the thrown exception
148
+ // FIXME: Enabling these exceptions makes
149
+ // jbmc-regression/synchronized-blocks/test_sync.desc
150
+ // run into an infinite loop during symex
148
151
// if (object == null)
149
152
// throw new NullPointerException();
150
153
You can’t perform that action at this time.
0 commit comments