Open Rafael-Baltazar opened 9 years ago
Printing the following aspect solves the issue. import org.jmlspecs.ajmlrac.runtime.*;
public privileged aspect AspectJMLRac_pt_ulisboa_tecnicoTestExceptionNotCaughtBug { declare precedence: AspectJMLRac, ;
void around (final java.lang.Object o) throws pt.ulisboa.tecnico.TestExceptionNotCaughtBug.DefinitelyNotNullPointerException : execution(static void pt.ulisboa.tecnico.TestExceptionNotCaughtBug.isNull(java.lang.Object)) && args(o) { final java.lang.Object rac$old0; // saving old expressions and old vars related to each spec case rac$old0 = o; try { proceed(o);//executing the method } catch (Throwable rac$e) { if(rac$e instanceof pt.ulisboa.tecnico.TestExceptionNotCaughtBug.DefinitelyNotNullPointerException && o == null) { cute.Cute.Assert((rac$old0 == null)); } if(rac$e instanceof pt.ulisboa.tecnico.TestExceptionNotCaughtBug.DefinitelyNotNullPointerException) { throw (pt.ulisboa.tecnico.TestExceptionNotCaughtBug.DefinitelyNotNullPointerException)rac$e; } } } }
DefinitelyNotNullPointerException is not thrown at line 17.