equal
deleted
inserted
replaced
98 public abstract String getMessage(Locale locale); |
98 public abstract String getMessage(Locale locale); |
99 |
99 |
100 // *** Internal support *** |
100 // *** Internal support *** |
101 |
101 |
102 /** |
102 /** |
103 * Internal: If this is from a compile, extract the compilation Unit. |
103 * Internal: If this is from a compile/analyze wrapped in an outer class, extract the snippet. |
104 * Otherwise null. |
104 * Otherwise null. |
105 */ |
105 */ |
106 abstract Unit unitOrNull(); |
106 Snippet snippetOrNull() { |
|
107 return null; |
|
108 } |
107 |
109 |
108 /** |
110 /** |
109 * This is an unreachable-statement error |
111 * This is an unreachable-statement error |
110 */ |
112 */ |
111 boolean isUnreachableError() { |
113 boolean isUnreachableError() { |
122 /** |
124 /** |
123 * This is a resolution error. |
125 * This is a resolution error. |
124 */ |
126 */ |
125 boolean isResolutionError() { |
127 boolean isResolutionError() { |
126 //TODO: try javac RESOLVE_ERROR flag |
128 //TODO: try javac RESOLVE_ERROR flag |
127 return getCode().startsWith("compiler.err.cant.resolve"); |
129 return getCode().startsWith("compiler.err.cant.resolve") |
|
130 || getCode().equals("compiler.err.cant.apply.symbol"); |
128 } |
131 } |
129 } |
132 } |