1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 12:51:52 +03:00
semantic/test/fixtures/java/corpus/try.java
Patrick Thomson c623d2906b Assignment error in Java try/catch blocks (#235)
As @tclem pointed out, the TryStatement token was being consumed too
early. We also ran into errors within the `catches` clause where we
required a block but were asking for an expression.
2019-09-06 12:23:55 -04:00

10 lines
159 B
Java

public class Bar {
public void foo() {
try {
System.out.println(1/0);
} catch (Exception e) {
e.printStackTrace(System.out);
}
}
}