public interface JavaErrors
| Modifier and Type | Field and Description | 
|---|---|
static short | 
ERROR_ABSTRACT_CLASS
Cannot instantiate abstract class. 
 | 
static short | 
ERROR_ABSTRACT_METHOD_CALL
Error: Cannot call abstract method {0} in {1}. 
 | 
static short | 
ERROR_AMBIGUOUS_IMPORT
Ambiguous import. 
 | 
static short | 
ERROR_AMBIGUOUS_REF
Ambiguous reference. 
 | 
static short | 
ERROR_ANNOTATION_ELEMENT_NAME_NOT_FOUND
Annotation element name {0} not found. 
 | 
static short | 
ERROR_ANONYMOUS_CLASS_CONSTRUCTOR
Error: Constructors are not allowed in anonymous classes. 
 | 
static short | 
ERROR_ASSERT_IDENTIFIER
'assert' used as an identifier. 
 | 
static short | 
ERROR_base
Begin errors. 
 | 
static short | 
ERROR_BREAK_OUTSIDE_SWITCH_OR_LOOP
Error: break outside of loop 
 | 
static short | 
ERROR_CANCELLED
Compilation cancelled. 
 | 
static short | 
ERROR_CANNOT_ASSIGN_FINAL
Error: Cannot assign to final variable {0}. 
 | 
static short | 
ERROR_CANNOT_INSTANTIATE_ENUMS
Error: Cannot instantiate enums. 
 | 
static short | 
ERROR_CANT_ASSIGN
Cannot assign value of type {0} to variable of type {1}. 
 | 
static short | 
ERROR_CANT_EXTEND_ENUM
Classes may not extend an enumeration type. 
 | 
static short | 
ERROR_CANT_EXTEND_FINAL
Cannot extend or override a final declaration. 
 | 
static short | 
ERROR_CANT_EXTEND_INTERFACE
Classes may not extend an interface type. 
 | 
static short | 
ERROR_CANT_IMPLEMENT_CLASS
Interface may not extend a non-interface type. 
 | 
static short | 
ERROR_CANT_TYPECAST
Cannot cast value of type {0} to variable of type {1}. 
 | 
static int | 
ERROR_CATEGORY_ALL
All error categories. 
 | 
static int | 
ERROR_CATEGORY_COMPILE
Compilation/resolution errors (warnings, etc). 
 | 
static int | 
ERROR_CATEGORY_PARSE
Parse errors (warnings, etc). 
 | 
static int | 
ERROR_CATEGORY_SCAN
Scan errors (warnings, etc). 
 | 
static int | 
ERROR_CATEGORY_unclassified
Unclassified errors (warnings, etc). 
 | 
static short | 
ERROR_CHECK_EXCEPTION
Exception {0} must be caught or declared to be thrown. 
 | 
static short | 
ERROR_CLASS_CIRCULARITY
Class circularity error. 
 | 
static short | 
ERROR_COMPILE_base  | 
static short | 
ERROR_COMPILE_GENERIC
Generic compiler error. 
 | 
static short | 
ERROR_COMPILE_max  | 
static short | 
ERROR_CONSTRUCTOR_NAME
Constructor must be named the same as a class. 
 | 
static short | 
ERROR_CONTINUE_OUTSIDE_OF_LOOP
Error: continue outside of loop 
 | 
static short | 
ERROR_CYCLIC_ANNOTATION_TYPE_REFERENCE
Cyclic annotation type reference {0}. 
 | 
static short | 
ERROR_DUPLICATE
Duplicate definition of {0}. 
 | 
static short | 
ERROR_EMPTY_CHAR_LITERAL
Empty character literal. 
 | 
static short | 
ERROR_EMPTY_EXPRESSION
Empty expression. 
 | 
static short | 
ERROR_EXCEPTION_NEVER_THROWN
Exception {0} is never thrown. 
 | 
static short | 
ERROR_EXPECTING_ONE
Expecting {0}. 
 | 
static short | 
ERROR_EXPECTING_TWO
Expecting {0} or {1}. 
 | 
static short | 
ERROR_EXPECTING_TYPE
Error: Expecting a type 
 | 
static short | 
ERROR_EXTENDS_NOT_ALLOWED
{0} does not allow 'extends'. 
 | 
static short | 
ERROR_EXTENDS_TOO_MANY
Classes may only extend one class. 
 | 
static short | 
ERROR_FINAL_ALREADY_ASSIGNED
Error: Final variable {0} might already have been assigned. 
 | 
static short | 
ERROR_FORWARD_REFERENCE
Illegal forward reference. 
 | 
static short | 
ERROR_GENERIC_COMPILER_ERROR
Error: {0}. 
 | 
static short | 
ERROR_GENERIC_TYPE
{0} is a generic type. 
 | 
static short | 
ERROR_ILLEGAL_ANNOTATION
May only annotate declarations. 
 | 
static short | 
ERROR_ILLEGAL_ARRAY_INITIALIZER
Illegal array initializer. 
 | 
static short | 
ERROR_ILLEGAL_DEFAULT
Only annotation types may have default method return values. 
 | 
static short | 
ERROR_ILLEGAL_DIAMOND
Illegal use of diamond syntax 
 | 
static short | 
ERROR_ILLEGAL_LABEL
May only label blocks and loop statements. 
 | 
static short | 
ERROR_ILLEGAL_METHOD_ARGUMENT_EXPRESSION
Illegal method argument expression. 
 | 
static short | 
ERROR_ILLEGAL_METHOD_RETURN_TYPE_OVERRIDE
Illegal override of {0}, incompatible return types. 
 | 
static short | 
ERROR_ILLEGAL_METHOD_THROW_TYPE_OVERRIDE
Illegal override of {0}, incompatible throw types. 
 | 
static short | 
ERROR_ILLEGAL_METHOD_VISIBILITY_OVERRIDE
Illegal override of {0}, incompatible visibilities. 
 | 
static short | 
ERROR_ILLEGAL_OVERRIDE_ANNOTATION
Illegal @Override annotation. 
 | 
static short | 
ERROR_ILLEGAL_START_OF_EXPR
Illegal start of expression. 
 | 
static short | 
ERROR_ILLEGAL_TYPE_PARAMETERS
Type parameters are not allowed here. 
 | 
static short | 
ERROR_ILLEGAL_VARARGS
Variable arguments only allowed on the last parameter. 
 | 
static short | 
ERROR_IMPLEMENTS_NOT_ALLOWED
{0} does not allow 'implements'. 
 | 
static short | 
ERROR_IMPORT_NOT_FOUND
Import {0} not found. 
 | 
static short | 
ERROR_INCOMPATIBLE_TYPES
Incompatible types, require {0}, found {1}. 
 | 
static short | 
ERROR_INCOMPATIBLE_WITH_FUNCTIONAL_INTERFACE_TARGET
Error: Expression cannot be assigned to functional interface target. 
 | 
static short | 
ERROR_INTERNAL
Generic internal error. 
 | 
static short | 
ERROR_INVALID_ANNOTATION_MEMBER_TYPE
Invalid annotation member type {0}. 
 | 
static short | 
ERROR_INVALID_CHAR_LITERAL
Invalid character literal. 
 | 
static short | 
ERROR_INVALID_ESCAPE_SEQUENCE
Invalid escape sequence. 
 | 
static short | 
ERROR_INVALID_EXPR_STMT
Not a valid expression statement. 
 | 
static short | 
ERROR_INVALID_NAME
Invalid identifier/name. 
 | 
static short | 
ERROR_INVALID_OPERATION
Operation not allowed on {0}. 
 | 
static short | 
ERROR_INVALID_STRING_LITERAL
Invalid string literal. 
 | 
static short | 
ERROR_INVALID_SUPERTYPE
Cannot extend or implement type {0}. 
 | 
static java.lang.String[] | 
ERROR_keys
Warnings and errors share the same key space. 
 | 
static short | 
ERROR_LONE_CATCH
'catch' without a 'try'. 
 | 
static short | 
ERROR_LONE_ELSE
'else' without an 'if'. 
 | 
static short | 
ERROR_LONE_FINALLY
'finally' without a 'try'. 
 | 
static short | 
ERROR_LONE_TRY
'try' with neither 'catch' nor 'finally'. 
 | 
static short | 
ERROR_max  | 
static short | 
ERROR_MEMBER_NOT_FOUND
Member {0} not found in {1}. 
 | 
static short | 
ERROR_METHOD_NOT_FOUND
Method {0} not found on {1}. 
 | 
static short | 
ERROR_MISSING_ANNOTATION_ARGUMENT
Missing annotation argument for element {0}. 
 | 
static short | 
ERROR_MISSING_ANNOTATION_ELEMENT_NAME
Missing annotation element name. 
 | 
static short | 
ERROR_MISSING_CASE_OR_DEFAULT_LABEL
Error: missing case or default label 
 | 
static short | 
ERROR_MISSING_CONDITION
Missing conditional expression. 
 | 
static short | 
ERROR_MISSING_METHOD_BODY
Missing method body, or declare as abstract. 
 | 
static short | 
ERROR_MISSING_RETURN
Error: Missing return 
 | 
static short | 
ERROR_MODIFIER_NOT_ALLOWED
Error: Modifier {0} not allowed here. 
 | 
static short | 
ERROR_MODIFIER_REPEATED
Modifier was repeated. 
 | 
static short | 
ERROR_MULTIPLE_COMPONENTS
Deprecated. 
 
ERROR_MISSING_ANNOTATION_ELEMENT_NAME is used instead 
 | 
static short | 
ERROR_NAME_NOT_FOUND
Name {0} not found. 
 | 
static short | 
ERROR_none  | 
static short | 
ERROR_NOT_A_CONSTANT_EXPRESSION
The expression is not a constant expression. 
 | 
static short | 
ERROR_NOT_ACCESSIBLE
Access not allowed to {0}. 
 | 
static short | 
ERROR_NOT_ANNOTATION_TYPE
{0} is not an annotation type. 
 | 
static short | 
ERROR_NOT_ASSIGNABLE
{0} is not assignable. 
 | 
static short | 
ERROR_NOT_GENERIC_TYPE
{0} is not a generic type. 
 | 
static short | 
ERROR_NOT_IMPLEMENTED_YET
Not implemented yet. 
 | 
static short | 
ERROR_NOT_THROWABLE
{0} is not a subtype of java/lang/Throwable. 
 | 
static short | 
ERROR_NUMBER_FORMAT
Number format error. 
 | 
static short | 
ERROR_NUMERIC_OVERFLOW
Numeric overflow. 
 | 
static short | 
ERROR_NUMERIC_UNDERFLOW
Numeric underflow. 
 | 
static short | 
ERROR_ONLY_STATIC_ACCESS
Access to {0} not allowed from static context. 
 | 
static short | 
ERROR_PARSE_base  | 
static short | 
ERROR_PARSE_GENERIC
Generic parser error. 
 | 
static short | 
ERROR_PARSE_max  | 
static short | 
ERROR_REQUIRE_ARRAY
{0} is not an array type. 
 | 
static short | 
ERROR_REQUIRE_BLOCK
Requires block. 
 | 
static short | 
ERROR_REQUIRE_FINAL
{0} is not a final variable, cannot be accessed from an inner class. 
 | 
static short | 
ERROR_REQUIRE_FINAL_OR_EFFECTIVELY_FINAL
{0} is not a final or effectively final variable. 
 | 
static short | 
ERROR_REQUIRE_OBJECT
A non-null reference object is required here. 
 | 
static short | 
ERROR_REQUIRE_OUTER_CLASS
Requires an enclosing instance of {0}. 
 | 
static short | 
ERROR_REQUIRE_VARIABLE
Expression is not a variable. 
 | 
static short | 
ERROR_SCAN_base  | 
static short | 
ERROR_SCAN_GENERIC
Generic scanner error. 
 | 
static short | 
ERROR_SCAN_max  | 
static short | 
ERROR_SUPER_NOT_FIRST
Call to super must be first statement in constructor 
 | 
static short | 
ERROR_TARGET_NOT_FUNCTIONAL_INTERFACE
Error: Expression needs functional interface target. 
 | 
static short | 
ERROR_THIS_NOT_FIRST
Call to this must be first statement in constructor 
 | 
static short | 
ERROR_TYPE_ARGUMENT_MISMATCH
Could not match type arguments on {0}. 
 | 
static short | 
ERROR_TYPE_IS_NOT_AUTOCLOSEABLE
Error: Type does not extend java.lang.AutoCloseable 
 | 
static short | 
ERROR_TYPE_IS_NOT_DISJUNCTIVE
Error: Type is not disjunctive 
 | 
static short | 
ERROR_TYPE_IS_NOT_ITERABLE
Error: Type does not extend java.lang.Iterable 
 | 
static short | 
ERROR_TYPE_NOT_ALLOWED
A type reference is not allowed here. 
 | 
static short | 
ERROR_TYPE_NOT_FOUND
Type {0} not found. 
 | 
static short | 
ERROR_UNEXPECTED
Unexpected token {0}. 
 | 
static short | 
ERROR_UNKNOWN
Generic unknown error. 
 | 
static short | 
ERROR_UNREACHABLE_STATEMENT
Error: Unreachable statement. 
 | 
static short | 
ERROR_VARIABLE_NOT_ASSIGNED
Error: Variable {0} might not have been initialized. 
 | 
static short | 
ERROR_VOID_RETURN
Cannot return a value from a void method. 
 | 
static short[] | 
ERROR_warnings  | 
static java.lang.String[] | 
ERROR_words
Auto-generated from the above list and its javadoc. 
 | 
static short | 
ERROR_WRONG_RECEIVER_TYPE
Error: The receiver type does not match the enclosing class type. 
 | 
static short | 
ERROR_WRONG_TARGET_META_ANNOTATION
Error: Annotation type has an incompatible @Target meta-annotation. 
 | 
static short | 
NOTE_GENERIC_COMPILER_NOTE
Note: {0}. 
 | 
static int | 
SEVERITY_ERROR
An error that prevents compilation/execution. 
 | 
static int | 
SEVERITY_FATAL
An unrecoverable error. 
 | 
static int | 
SEVERITY_LINT
A possible error? 
 | 
static int | 
SEVERITY_NOTE
A note. 
 | 
static int | 
SEVERITY_WARNING
An error that does not prevent compilation/execution. 
 | 
static int | 
SEVERITY_ZERO
An increasing value indicates a worse severity. 
 | 
static short | 
WARNING_AMBIGUOUS_DOC_REFERENCE
Warning: Doc reference {0} is ambiguous. 
 | 
static short | 
WARNING_ASSERT_IDENTIFIER
Warning: 'assert' used as an identifier. 
 | 
static short | 
WARNING_DOC_REFERENCE_NOT_FOUND
Warning: Doc reference {0} not found. 
 | 
static short | 
WARNING_FINALLY_CANNOT_COMPLETE
Warning: Finally clause cannot complete normally 
 | 
static short | 
WARNING_GENERIC_COMPILER_WARNING
Warning: {0}. 
 | 
static short | 
WARNING_IMPORT_UNUSED
Warning: Import unused. 
 | 
static short | 
WARNING_INVALID_NAME
Warning: invalid name. 
 | 
static short | 
WARNING_METHOD_NAME
Warning: Method has the same name as the enclosing class. 
 | 
static short | 
WARNING_SWITCH_CASE_FALL_THROUGH
Warning: Possible fall-through into case. 
 | 
static short | 
WARNING_UNCHECKED_CONVERSION
Warning: Unchecked conversion. 
 | 
static final int SEVERITY_ZERO
static final int SEVERITY_NOTE
static final int SEVERITY_LINT
static final int SEVERITY_WARNING
static final int SEVERITY_ERROR
static final int SEVERITY_FATAL
static final int ERROR_CATEGORY_unclassified
static final int ERROR_CATEGORY_SCAN
static final int ERROR_CATEGORY_PARSE
static final int ERROR_CATEGORY_COMPILE
static final int ERROR_CATEGORY_ALL
static final short ERROR_none
static final short ERROR_base
static final short ERROR_UNKNOWN
static final short ERROR_INTERNAL
static final short ERROR_NOT_IMPLEMENTED_YET
static final short ERROR_NUMBER_FORMAT
static final short ERROR_NUMERIC_OVERFLOW
static final short ERROR_NUMERIC_UNDERFLOW
static final short ERROR_SCAN_GENERIC
static final short ERROR_INVALID_STRING_LITERAL
static final short ERROR_EMPTY_CHAR_LITERAL
static final short ERROR_INVALID_CHAR_LITERAL
static final short ERROR_INVALID_ESCAPE_SEQUENCE
static final short ERROR_CONSTRUCTOR_NAME
static final short ERROR_EMPTY_EXPRESSION
static final short ERROR_EXPECTING_ONE
static final short ERROR_EXPECTING_TWO
static final short ERROR_EXTENDS_NOT_ALLOWED
static final short ERROR_EXTENDS_TOO_MANY
static final short ERROR_ILLEGAL_LABEL
static final short ERROR_ILLEGAL_START_OF_EXPR
static final short ERROR_IMPLEMENTS_NOT_ALLOWED
static final short ERROR_LONE_CATCH
static final short ERROR_LONE_ELSE
static final short ERROR_LONE_FINALLY
static final short ERROR_LONE_TRY
static final short ERROR_MISSING_CONDITION
static final short ERROR_MODIFIER_REPEATED
static final short ERROR_PARSE_GENERIC
static final short ERROR_REQUIRE_BLOCK
static final short ERROR_UNEXPECTED
static final short WARNING_METHOD_NAME
static final short ERROR_ASSERT_IDENTIFIER
static final short WARNING_ASSERT_IDENTIFIER
static final short ERROR_ILLEGAL_ANNOTATION
static final short ERROR_ILLEGAL_VARARGS
static final short ERROR_ILLEGAL_DEFAULT
static final short ERROR_ILLEGAL_TYPE_PARAMETERS
static final short ERROR_EXPECTING_TYPE
static final short ERROR_ANONYMOUS_CLASS_CONSTRUCTOR
static final short ERROR_ABSTRACT_CLASS
static final short ERROR_AMBIGUOUS_IMPORT
static final short ERROR_AMBIGUOUS_REF
static final short ERROR_CANCELLED
static final short ERROR_CANT_ASSIGN
static final short ERROR_CANT_EXTEND_ENUM
static final short ERROR_CANT_EXTEND_FINAL
static final short ERROR_CANT_EXTEND_INTERFACE
static final short ERROR_CANT_IMPLEMENT_CLASS
static final short ERROR_CANT_TYPECAST
static final short ERROR_CHECK_EXCEPTION
static final short ERROR_CLASS_CIRCULARITY
static final short ERROR_COMPILE_GENERIC
static final short ERROR_DUPLICATE
static final short ERROR_FORWARD_REFERENCE
static final short ERROR_IMPORT_NOT_FOUND
static final short ERROR_INVALID_EXPR_STMT
static final short ERROR_INVALID_NAME
static final short ERROR_INVALID_OPERATION
static final short ERROR_INVALID_SUPERTYPE
static final short ERROR_MEMBER_NOT_FOUND
static final short ERROR_METHOD_NOT_FOUND
@Deprecated static final short ERROR_MULTIPLE_COMPONENTS
static final short ERROR_NAME_NOT_FOUND
static final short ERROR_NOT_ACCESSIBLE
static final short ERROR_NOT_ANNOTATION_TYPE
static final short ERROR_NOT_ASSIGNABLE
static final short ERROR_NOT_GENERIC_TYPE
static final short ERROR_NOT_THROWABLE
static final short ERROR_ONLY_STATIC_ACCESS
static final short ERROR_REQUIRE_ARRAY
static final short ERROR_REQUIRE_FINAL
static final short ERROR_REQUIRE_OBJECT
static final short ERROR_REQUIRE_OUTER_CLASS
static final short ERROR_TYPE_ARGUMENT_MISMATCH
static final short ERROR_TYPE_NOT_ALLOWED
static final short ERROR_TYPE_NOT_FOUND
static final short ERROR_VOID_RETURN
static final short WARNING_IMPORT_UNUSED
static final short WARNING_DOC_REFERENCE_NOT_FOUND
static final short WARNING_AMBIGUOUS_DOC_REFERENCE
static final short ERROR_MISSING_METHOD_BODY
static final short WARNING_INVALID_NAME
static final short ERROR_BREAK_OUTSIDE_SWITCH_OR_LOOP
static final short ERROR_CONTINUE_OUTSIDE_OF_LOOP
static final short ERROR_MISSING_CASE_OR_DEFAULT_LABEL
static final short ERROR_TYPE_IS_NOT_DISJUNCTIVE
static final short ERROR_TYPE_IS_NOT_AUTOCLOSEABLE
static final short ERROR_MISSING_RETURN
static final short WARNING_FINALLY_CANNOT_COMPLETE
static final short ERROR_FINAL_ALREADY_ASSIGNED
static final short ERROR_VARIABLE_NOT_ASSIGNED
static final short ERROR_CANNOT_ASSIGN_FINAL
static final short ERROR_UNREACHABLE_STATEMENT
static final short ERROR_MODIFIER_NOT_ALLOWED
static final short ERROR_GENERIC_TYPE
static final short ERROR_SUPER_NOT_FIRST
static final short ERROR_THIS_NOT_FIRST
static final short ERROR_ILLEGAL_DIAMOND
static final short ERROR_TYPE_IS_NOT_ITERABLE
static final short ERROR_ABSTRACT_METHOD_CALL
static final short ERROR_TARGET_NOT_FUNCTIONAL_INTERFACE
static final short ERROR_INCOMPATIBLE_WITH_FUNCTIONAL_INTERFACE_TARGET
static final short ERROR_CANNOT_INSTANTIATE_ENUMS
static final short ERROR_REQUIRE_FINAL_OR_EFFECTIVELY_FINAL
static final short ERROR_ILLEGAL_METHOD_VISIBILITY_OVERRIDE
static final short ERROR_ILLEGAL_METHOD_RETURN_TYPE_OVERRIDE
static final short ERROR_ILLEGAL_METHOD_THROW_TYPE_OVERRIDE
static final short ERROR_ILLEGAL_OVERRIDE_ANNOTATION
static final short ERROR_MISSING_ANNOTATION_ARGUMENT
static final short ERROR_MISSING_ANNOTATION_ELEMENT_NAME
static final short ERROR_CYCLIC_ANNOTATION_TYPE_REFERENCE
static final short ERROR_ANNOTATION_ELEMENT_NAME_NOT_FOUND
static final short ERROR_INVALID_ANNOTATION_MEMBER_TYPE
static final short ERROR_NOT_A_CONSTANT_EXPRESSION
static final short ERROR_REQUIRE_VARIABLE
static final short ERROR_INCOMPATIBLE_TYPES
static final short ERROR_ILLEGAL_ARRAY_INITIALIZER
static final short ERROR_EXCEPTION_NEVER_THROWN
static final short WARNING_SWITCH_CASE_FALL_THROUGH
static final short ERROR_ILLEGAL_METHOD_ARGUMENT_EXPRESSION
static final short ERROR_GENERIC_COMPILER_ERROR
static final short NOTE_GENERIC_COMPILER_NOTE
static final short WARNING_GENERIC_COMPILER_WARNING
static final short ERROR_WRONG_TARGET_META_ANNOTATION
static final short ERROR_WRONG_RECEIVER_TYPE
static final short WARNING_UNCHECKED_CONVERSION
static final short ERROR_max
static final short ERROR_SCAN_base
static final short ERROR_SCAN_max
static final short ERROR_PARSE_base
static final short ERROR_PARSE_max
static final short ERROR_COMPILE_base
static final short ERROR_COMPILE_max
static final java.lang.String[] ERROR_keys
static final java.lang.String[] ERROR_words
static final short[] ERROR_warnings