mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 14:11:27 +02:00
18 lines
324 B
Java
18 lines
324 B
Java
import org.aspectj.testing.Tester;
|
|
|
|
public class DivOpMustHappen {
|
|
static int i = 0;
|
|
static int j = 1;
|
|
|
|
public static void main(String[] args) {
|
|
boolean threw = false;
|
|
try {
|
|
switch(j / i) {}
|
|
} catch (Exception e) {
|
|
threw = true;
|
|
}
|
|
Tester.check(threw, "didn't throw divbyzero exception");
|
|
}
|
|
}
|
|
|