What rules applies to the following code:
try {
assert (false) : "jane";
} catch (Exception e2) {
System.out.print("ae2 ");
} finally {
throw new IllegalArgumentException();
}
Assetions are enabled.
Why IllegalArgumentException is reported instead of AssertionError? Are there any rules which applies in this situations?
Edit: Sorry! in this example there should be assert (false)