Homework 4
This commit is contained in:
parent
0afc86ceeb
commit
72cc3206c4
125 changed files with 4200 additions and 1636 deletions
|
@ -7,12 +7,7 @@ public class SemanticFailure extends RuntimeException {
|
|||
private static final long serialVersionUID = 5375946759285719123L;
|
||||
|
||||
public enum Cause {
|
||||
/**
|
||||
* Caused by a nested method being found. Those are not
|
||||
* supported.
|
||||
*/
|
||||
NESTED_METHODS_UNSUPPORTED,
|
||||
|
||||
|
||||
/**
|
||||
* Caused by an assignment to either a final field, {@code this},
|
||||
* or some other kind of expression which cannot be assigned to.
|
||||
|
@ -20,9 +15,6 @@ public class SemanticFailure extends RuntimeException {
|
|||
* under {@link #TYPE_ERROR}. */
|
||||
NOT_ASSIGNABLE,
|
||||
|
||||
/** The value of a final field is not a compile-time constant */
|
||||
NOT_A_CONSTANT_EXPR,
|
||||
|
||||
/** Two variables, fields, methods, or classes with the same name
|
||||
* were declared in the same scope */
|
||||
DOUBLE_DECLARATION,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue