1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 * IBM Corporation - added the following constants
11 * NonStaticAccessToStaticField
12 * NonStaticAccessToStaticMethod
14 * ExpressionShouldBeAVariable
15 * AssignmentHasNoEffect
16 * IBM Corporation - added the following constants
17 * TooManySyntheticArgumentSlots
18 * TooManyArrayDimensions
19 * TooManyBytesForStringConstant
22 * NonBlankFinalLocalAssignment
23 * ObjectCannotHaveSuperTypes
25 * InvalidParenthesizedExpression
26 * EnclosingInstanceInConstructorCall
27 * BytecodeExceeds64KLimitForConstructor
28 * IncompatibleReturnTypeForNonInheritedInterfaceMethod
30 * UnusedPrivateConstructor
33 * IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod
34 *******************************************************************************/
35 package net.sourceforge.phpdt.core.compiler;
37 import net.sourceforge.phpdt.internal.compiler.lookup.ProblemReasons;
40 * Description of a Java problem, as detected by the compiler or some of the underlying
41 * technology reusing the compiler.
42 * A problem provides access to:
44 * <li> its location (originating source file name, source position, line number), </li>
45 * <li> its message description and a predicate to check its severity (warning or error). </li>
46 * <li> its ID : an number identifying the very nature of this problem. All possible IDs are listed
47 * as constants on this interface. </li>
50 * Note: the compiler produces IProblems internally, which are turned into markers by the JavaBuilder
51 * so as to persist problem descriptions. This explains why there is no API allowing to reach IProblem detected
52 * when compiling. However, the Java problem markers carry equivalent information to IProblem, in particular
53 * their ID (attribute "id") is set to one of the IDs defined on this interface.
57 public interface IProblem {
60 * Answer back the original arguments recorded into the problem.
61 * @return the original arguments recorded into the problem
63 String[] getArguments();
66 * Returns the problem id
68 * @return the problem id
73 * Answer a localized, human-readable message string which describes the problem.
75 * @return a localized, human-readable message string which describes the problem
80 * Answer the file name in which the problem was found.
82 * @return the file name in which the problem was found
84 char[] getOriginatingFileName();
87 * Answer the end position of the problem (inclusive), or -1 if unknown.
89 * @return the end position of the problem (inclusive), or -1 if unknown
94 * Answer the line number in source where the problem begins.
96 * @return the line number in source where the problem begins
98 int getSourceLineNumber();
101 * Answer the start position of the problem (inclusive), or -1 if unknown.
103 * @return the start position of the problem (inclusive), or -1 if unknown
105 int getSourceStart();
108 * Checks the severity to see if the Error bit is set.
110 * @return true if the Error bit is set for the severity, false otherwise
115 * Checks the severity to see if the Error bit is not set.
117 * @return true if the Error bit is not set for the severity, false otherwise
122 * Set the end position of the problem (inclusive), or -1 if unknown.
123 * Used for shifting problem positions.
125 * @param sourceEnd the given end position
127 void setSourceEnd(int sourceEnd);
130 * Set the line number in source where the problem begins.
132 * @param lineNumber the given line number
134 void setSourceLineNumber(int lineNumber);
137 * Set the start position of the problem (inclusive), or -1 if unknown.
138 * Used for shifting problem positions.
140 * @param the given start position
142 void setSourceStart(int sourceStart);
146 * The high bits of a problem ID contains information about the category of a problem.
147 * For example, (problemID & TypeRelated) != 0, indicates that this problem is type related.
149 * A problem category can help to implement custom problem filters. Indeed, when numerous problems
150 * are listed, focusing on import related problems first might be relevant.
152 * When a problem is tagged as Internal, it means that no change other than a local source code change
153 * can fix the corresponding problem.
155 int TypeRelated = 0x01000000;
156 int FieldRelated = 0x02000000;
157 int MethodRelated = 0x04000000;
158 int ConstructorRelated = 0x08000000;
159 int ImportRelated = 0x10000000;
160 int Internal = 0x20000000;
161 int Syntax = 0x40000000;
164 * Mask to use in order to filter out the category portion of the problem ID.
166 int IgnoreCategoriesMask = 0xFFFFFF;
169 * Below are listed all available problem IDs. Note that this list could be augmented in the future,
170 * as new features are added to the Java core implementation.
174 * ID reserved for referencing an internal error inside the JavaCore implementation which
175 * may be surfaced as a problem associated with the compilation unit which caused it to occur.
177 int Unclassified = 0;
180 * Generic type related problems
182 int ObjectHasNoSuperclass = TypeRelated + 1;
183 int UndefinedType = TypeRelated + 2;
184 int NotVisibleType = TypeRelated + 3;
185 int AmbiguousType = TypeRelated + 4;
186 int UsingDeprecatedType = TypeRelated + 5;
187 int InternalTypeNameProvided = TypeRelated + 6;
189 int UnusedPrivateType = Internal + TypeRelated + 7;
191 int IncompatibleTypesInEqualityOperator = TypeRelated + 15;
192 int IncompatibleTypesInConditionalOperator = TypeRelated + 16;
193 int TypeMismatch = TypeRelated + 17;
196 * Inner types related problems
198 int MissingEnclosingInstanceForConstructorCall = TypeRelated + 20;
199 int MissingEnclosingInstance = TypeRelated + 21;
200 int IncorrectEnclosingInstanceReference = TypeRelated + 22;
201 int IllegalEnclosingInstanceSpecification = TypeRelated + 23;
202 int CannotDefineStaticInitializerInLocalType = Internal + 24;
203 int OuterLocalMustBeFinal = Internal + 25;
204 int CannotDefineInterfaceInLocalType = Internal + 26;
205 int IllegalPrimitiveOrArrayTypeForEnclosingInstance = TypeRelated + 27;
207 int EnclosingInstanceInConstructorCall = Internal + 28;
208 int AnonymousClassCannotExtendFinalClass = TypeRelated + 29;
211 int UndefinedName = 50;
212 int UninitializedLocalVariable = Internal + 51;
213 int VariableTypeCannotBeVoid = Internal + 52;
214 int VariableTypeCannotBeVoidArray = Internal + 53;
215 int CannotAllocateVoidArray = Internal + 54;
217 int RedefinedLocal = Internal + 55;
218 int RedefinedArgument = Internal + 56;
219 // final local variables
220 int DuplicateFinalLocalInitialization = Internal + 57;
222 int NonBlankFinalLocalAssignment = Internal + 58;
223 int FinalOuterLocalAssignment = Internal + 60;
224 int LocalVariableIsNeverUsed = Internal + 61;
225 int ArgumentIsNeverUsed = Internal + 62;
226 int BytecodeExceeds64KLimit = Internal + 63;
227 int BytecodeExceeds64KLimitForClinit = Internal + 64;
228 int TooManyArgumentSlots = Internal + 65;
229 int TooManyLocalVariableSlots = Internal + 66;
231 int TooManySyntheticArgumentSlots = Internal + 67;
233 int TooManyArrayDimensions = Internal + 68;
235 int BytecodeExceeds64KLimitForConstructor = Internal + 69;
238 int UndefinedField = FieldRelated + 70;
239 int NotVisibleField = FieldRelated + 71;
240 int AmbiguousField = FieldRelated + 72;
241 int UsingDeprecatedField = FieldRelated + 73;
242 int NonStaticFieldFromStaticInvocation = FieldRelated + 74;
243 int ReferenceToForwardField = FieldRelated + Internal + 75;
245 int NonStaticAccessToStaticField = Internal + FieldRelated + 76;
247 int UnusedPrivateField = Internal + FieldRelated + 77;
249 // blank final fields
250 int FinalFieldAssignment = FieldRelated + 80;
251 int UninitializedBlankFinalField = FieldRelated + 81;
252 int DuplicateBlankFinalFieldInitialization = FieldRelated + 82;
255 int UndefinedMethod = MethodRelated + 100;
256 int NotVisibleMethod = MethodRelated + 101;
257 int AmbiguousMethod = MethodRelated + 102;
258 int UsingDeprecatedMethod = MethodRelated + 103;
259 int DirectInvocationOfAbstractMethod = MethodRelated + 104;
260 int VoidMethodReturnsValue = MethodRelated + 105;
261 int MethodReturnsVoid = MethodRelated + 106;
262 int MethodRequiresBody = Internal + MethodRelated + 107;
263 int ShouldReturnValue = Internal + MethodRelated + 108;
264 int MethodButWithConstructorName = MethodRelated + 110;
265 int MissingReturnType = TypeRelated + 111;
266 int BodyForNativeMethod = Internal + MethodRelated + 112;
267 int BodyForAbstractMethod = Internal + MethodRelated + 113;
268 int NoMessageSendOnBaseType = MethodRelated + 114;
269 int ParameterMismatch = MethodRelated + 115;
270 int NoMessageSendOnArrayType = MethodRelated + 116;
272 int NonStaticAccessToStaticMethod = Internal + MethodRelated + 117;
274 int UnusedPrivateMethod = Internal + MethodRelated + 118;
277 int UndefinedConstructor = ConstructorRelated + 130;
278 int NotVisibleConstructor = ConstructorRelated + 131;
279 int AmbiguousConstructor = ConstructorRelated + 132;
280 int UsingDeprecatedConstructor = ConstructorRelated + 133;
282 int UnusedPrivateConstructor = Internal + MethodRelated + 134;
283 // explicit constructor calls
284 int InstanceFieldDuringConstructorInvocation = ConstructorRelated + 135;
285 int InstanceMethodDuringConstructorInvocation = ConstructorRelated + 136;
286 int RecursiveConstructorInvocation = ConstructorRelated + 137;
287 int ThisSuperDuringConstructorInvocation = ConstructorRelated + 138;
288 // implicit constructor calls
289 int UndefinedConstructorInDefaultConstructor = ConstructorRelated + 140;
290 int NotVisibleConstructorInDefaultConstructor = ConstructorRelated + 141;
291 int AmbiguousConstructorInDefaultConstructor = ConstructorRelated + 142;
292 int UndefinedConstructorInImplicitConstructorCall = ConstructorRelated + 143;
293 int NotVisibleConstructorInImplicitConstructorCall = ConstructorRelated + 144;
294 int AmbiguousConstructorInImplicitConstructorCall = ConstructorRelated + 145;
295 int UnhandledExceptionInDefaultConstructor = TypeRelated + 146;
296 int UnhandledExceptionInImplicitConstructorCall = TypeRelated + 147;
299 int ArrayReferenceRequired = Internal + 150;
300 int NoImplicitStringConversionForCharArrayExpression = Internal + 151;
301 // constant expressions
302 int StringConstantIsExceedingUtf8Limit = Internal + 152;
303 int NonConstantExpression = 153;
304 int NumericValueOutOfRange = Internal + 154;
306 int IllegalCast = TypeRelated + 156;
308 int InvalidClassInstantiation = TypeRelated + 157;
309 int CannotDefineDimensionExpressionsWithInit = Internal + 158;
310 int MustDefineEitherDimensionExpressionsOrInitializer = Internal + 159;
312 int InvalidOperator = Internal + 160;
314 int CodeCannotBeReached = Internal + 161;
315 int CannotReturnInInitializer = Internal + 162;
316 int InitializerMustCompleteNormally = Internal + 163;
319 int InvalidVoidExpression = Internal + 164;
321 int MaskedCatch = TypeRelated + 165;
322 int DuplicateDefaultCase = 166;
323 int UnreachableCatch = TypeRelated + MethodRelated + 167;
324 int UnhandledException = TypeRelated + 168;
326 int IncorrectSwitchType = TypeRelated + 169;
327 int DuplicateCase = FieldRelated + 170;
329 int DuplicateLabel = Internal + 171;
330 int InvalidBreak = Internal + 172;
331 int InvalidContinue = Internal + 173;
332 int UndefinedLabel = Internal + 174;
334 int InvalidTypeToSynchronized = Internal + 175;
335 int InvalidNullToSynchronized = Internal + 176;
337 int CannotThrowNull = Internal + 177;
340 int AssignmentHasNoEffect = Internal + 178;
343 int NeedToEmulateFieldReadAccess = FieldRelated + 190;
344 int NeedToEmulateFieldWriteAccess = FieldRelated + 191;
345 int NeedToEmulateMethodAccess = MethodRelated + 192;
346 int NeedToEmulateConstructorAccess = MethodRelated + 193;
348 //inherited name hides enclosing name (sort of ambiguous)
349 int InheritedMethodHidesEnclosingName = MethodRelated + 195;
350 int InheritedFieldHidesEnclosingName = FieldRelated + 196;
351 int InheritedTypeHidesEnclosingName = TypeRelated + 197;
354 int ThisInStaticContext = Internal + 200;
355 int StaticMethodRequested = Internal + MethodRelated + 201;
356 int IllegalDimension = Internal + 202;
357 int InvalidTypeExpression = Internal + 203;
358 int ParsingError = Syntax + Internal + 204;
359 int ParsingErrorNoSuggestion = Syntax + Internal + 205;
360 int InvalidUnaryExpression = Syntax + Internal + 206;
363 int InterfaceCannotHaveConstructors = Syntax + Internal + 207;
364 int ArrayConstantsOnlyInArrayInitializers = Syntax + Internal + 208;
365 int ParsingErrorOnKeyword = Syntax + Internal + 209;
366 int ParsingErrorOnKeywordNoSuggestion = Syntax + Internal + 210;
367 int PHPParsingError = Syntax + Internal + 211;
368 int PHPParsingWarning = Syntax + Internal + 212;
369 int PHPVarDeprecatedWarning = Syntax + Internal + 213;
371 int UnmatchedBracket = Syntax + Internal + 220;
372 int NoFieldOnBaseType = FieldRelated + 221;
373 int InvalidExpressionAsStatement = Syntax + Internal + 222;
375 int ExpressionShouldBeAVariable = Syntax + Internal + 223;
377 int MissingSemiColon = Syntax + Internal + 224;
379 int InvalidParenthesizedExpression = Syntax + Internal + 225;
382 int EndOfSource = Syntax + Internal + 250;
383 int InvalidHexa = Syntax + Internal + 251;
384 int InvalidOctal = Syntax + Internal + 252;
385 int InvalidCharacterConstant = Syntax + Internal + 253;
386 int InvalidEscape = Syntax + Internal + 254;
387 int InvalidInput = Syntax + Internal + 255;
388 int InvalidUnicodeEscape = Syntax + Internal + 256;
389 int InvalidFloat = Syntax + Internal + 257;
390 int NullSourceString = Syntax + Internal + 258;
391 int UnterminatedString = Syntax + Internal + 259;
392 int UnterminatedComment = Syntax + Internal + 260;
394 // type related problems
395 int InterfaceCannotHaveInitializers = TypeRelated + 300;
396 int DuplicateModifierForType = TypeRelated + 301;
397 int IllegalModifierForClass = TypeRelated + 302;
398 int IllegalModifierForInterface = TypeRelated + 303;
399 int IllegalModifierForMemberClass = TypeRelated + 304;
400 int IllegalModifierForMemberInterface = TypeRelated + 305;
401 int IllegalModifierForLocalClass = TypeRelated + 306;
403 int IllegalModifierCombinationFinalAbstractForClass = TypeRelated + 308;
404 int IllegalVisibilityModifierForInterfaceMemberType = TypeRelated + 309;
405 int IllegalVisibilityModifierCombinationForMemberType = TypeRelated + 310;
406 int IllegalStaticModifierForMemberType = TypeRelated + 311;
407 int SuperclassMustBeAClass = TypeRelated + 312;
408 int ClassExtendFinalClass = TypeRelated + 313;
409 int DuplicateSuperInterface = TypeRelated + 314;
410 int SuperInterfaceMustBeAnInterface = TypeRelated + 315;
411 int HierarchyCircularitySelfReference = TypeRelated + 316;
412 int HierarchyCircularity = TypeRelated + 317;
413 int HidingEnclosingType = TypeRelated + 318;
414 int DuplicateNestedType = TypeRelated + 319;
415 int CannotThrowType = TypeRelated + 320;
416 int PackageCollidesWithType = TypeRelated + 321;
417 int TypeCollidesWithPackage = TypeRelated + 322;
418 int DuplicateTypes = TypeRelated + 323;
419 int IsClassPathCorrect = TypeRelated + 324;
420 int PublicClassMustMatchFileName = TypeRelated + 325;
421 int MustSpecifyPackage = 326;
422 int HierarchyHasProblems = TypeRelated + 327;
423 int PackageIsNotExpectedPackage = 328;
425 int ObjectCannotHaveSuperTypes = 329;
427 // int InvalidSuperclassBase = TypeRelated + 329; // reserved to 334 included
428 int SuperclassNotFound = TypeRelated + 329 + ProblemReasons.NotFound; // TypeRelated + 330
429 int SuperclassNotVisible = TypeRelated + 329 + ProblemReasons.NotVisible; // TypeRelated + 331
430 int SuperclassAmbiguous = TypeRelated + 329 + ProblemReasons.Ambiguous; // TypeRelated + 332
431 int SuperclassInternalNameProvided = TypeRelated + 329 + ProblemReasons.InternalNameProvided; // TypeRelated + 333
432 int SuperclassInheritedNameHidesEnclosingName = TypeRelated + 329 + ProblemReasons.InheritedNameHidesEnclosingName; // TypeRelated + 334
434 // int InvalidInterfaceBase = TypeRelated + 334; // reserved to 339 included
435 int InterfaceNotFound = TypeRelated + 334 + ProblemReasons.NotFound; // TypeRelated + 335
436 int InterfaceNotVisible = TypeRelated + 334 + ProblemReasons.NotVisible; // TypeRelated + 336
437 int InterfaceAmbiguous = TypeRelated + 334 + ProblemReasons.Ambiguous; // TypeRelated + 337
438 int InterfaceInternalNameProvided = TypeRelated + 334 + ProblemReasons.InternalNameProvided; // TypeRelated + 338
439 int InterfaceInheritedNameHidesEnclosingName = TypeRelated + 334 + ProblemReasons.InheritedNameHidesEnclosingName; // TypeRelated + 339
441 // field related problems
442 int DuplicateField = FieldRelated + 340;
443 int DuplicateModifierForField = FieldRelated + 341;
444 int IllegalModifierForField = FieldRelated + 342;
445 int IllegalModifierForInterfaceField = FieldRelated + 343;
446 int IllegalVisibilityModifierCombinationForField = FieldRelated + 344;
447 int IllegalModifierCombinationFinalVolatileForField = FieldRelated + 345;
448 int UnexpectedStaticModifierForField = FieldRelated + 346;
450 // int FieldTypeProblemBase = FieldRelated + 349; //reserved to 354
451 int FieldTypeNotFound = FieldRelated + 349 + ProblemReasons.NotFound; // FieldRelated + 350
452 int FieldTypeNotVisible = FieldRelated + 349 + ProblemReasons.NotVisible; // FieldRelated + 351
453 int FieldTypeAmbiguous = FieldRelated + 349 + ProblemReasons.Ambiguous; // FieldRelated + 352
454 int FieldTypeInternalNameProvided = FieldRelated + 349 + ProblemReasons.InternalNameProvided; // FieldRelated + 353
455 int FieldTypeInheritedNameHidesEnclosingName = FieldRelated + 349 + ProblemReasons.InheritedNameHidesEnclosingName; // FieldRelated + 354
457 // method related problems
458 int DuplicateMethod = MethodRelated + 355;
459 int IllegalModifierForArgument = MethodRelated + 356;
460 int DuplicateModifierForMethod = MethodRelated + 357;
461 int IllegalModifierForMethod = MethodRelated + 358;
462 int IllegalModifierForInterfaceMethod = MethodRelated + 359;
463 int IllegalVisibilityModifierCombinationForMethod = MethodRelated + 360;
464 int UnexpectedStaticModifierForMethod = MethodRelated + 361;
465 int IllegalAbstractModifierCombinationForMethod = MethodRelated + 362;
466 int AbstractMethodInAbstractClass = MethodRelated + 363;
467 int ArgumentTypeCannotBeVoid = MethodRelated + 364;
468 int ArgumentTypeCannotBeVoidArray = MethodRelated + 365;
469 int ReturnTypeCannotBeVoidArray = MethodRelated + 366;
470 int NativeMethodsCannotBeStrictfp = MethodRelated + 367;
471 int DuplicateModifierForArgument = MethodRelated + 368;
473 // int ArgumentProblemBase = MethodRelated + 369; // reserved to 374 included.
474 int ArgumentTypeNotFound = MethodRelated + 369 + ProblemReasons.NotFound; // MethodRelated + 370
475 int ArgumentTypeNotVisible = MethodRelated + 369 + ProblemReasons.NotVisible; // MethodRelated + 371
476 int ArgumentTypeAmbiguous = MethodRelated + 369 + ProblemReasons.Ambiguous; // MethodRelated + 372
477 int ArgumentTypeInternalNameProvided = MethodRelated + 369 + ProblemReasons.InternalNameProvided; // MethodRelated + 373
478 int ArgumentTypeInheritedNameHidesEnclosingName = MethodRelated + 369 + ProblemReasons.InheritedNameHidesEnclosingName; // MethodRelated + 374
480 // int ExceptionTypeProblemBase = MethodRelated + 374; // reserved to 379 included.
481 int ExceptionTypeNotFound = MethodRelated + 374 + ProblemReasons.NotFound; // MethodRelated + 375
482 int ExceptionTypeNotVisible = MethodRelated + 374 + ProblemReasons.NotVisible; // MethodRelated + 376
483 int ExceptionTypeAmbiguous = MethodRelated + 374 + ProblemReasons.Ambiguous; // MethodRelated + 377
484 int ExceptionTypeInternalNameProvided = MethodRelated + 374 + ProblemReasons.InternalNameProvided; // MethodRelated + 378
485 int ExceptionTypeInheritedNameHidesEnclosingName = MethodRelated + 374 + ProblemReasons.InheritedNameHidesEnclosingName; // MethodRelated + 379
487 // int ReturnTypeProblemBase = MethodRelated + 379;
488 int ReturnTypeNotFound = MethodRelated + 379 + ProblemReasons.NotFound; // MethodRelated + 380
489 int ReturnTypeNotVisible = MethodRelated + 379 + ProblemReasons.NotVisible; // MethodRelated + 381
490 int ReturnTypeAmbiguous = MethodRelated + 379 + ProblemReasons.Ambiguous; // MethodRelated + 382
491 int ReturnTypeInternalNameProvided = MethodRelated + 379 + ProblemReasons.InternalNameProvided; // MethodRelated + 383
492 int ReturnTypeInheritedNameHidesEnclosingName = MethodRelated + 379 + ProblemReasons.InheritedNameHidesEnclosingName; // MethodRelated + 384
494 // import related problems
495 int ConflictingImport = ImportRelated + 385;
496 int DuplicateImport = ImportRelated + 386;
497 int CannotImportPackage = ImportRelated + 387;
498 int UnusedImport = ImportRelated + 388;
500 // int ImportProblemBase = ImportRelated + 389;
501 int ImportNotFound = ImportRelated + 389 + ProblemReasons.NotFound; // ImportRelated + 390
502 int ImportNotVisible = ImportRelated + 389 + ProblemReasons.NotVisible; // ImportRelated + 391
503 int ImportAmbiguous = ImportRelated + 389 + ProblemReasons.Ambiguous; // ImportRelated + 392
504 int ImportInternalNameProvided = ImportRelated + 389 + ProblemReasons.InternalNameProvided; // ImportRelated + 393
505 int ImportInheritedNameHidesEnclosingName = ImportRelated + 389 + ProblemReasons.InheritedNameHidesEnclosingName; // ImportRelated + 394
508 // local variable related problems
509 int DuplicateModifierForVariable = MethodRelated + 395;
510 int IllegalModifierForVariable = MethodRelated + 396;
512 // method verifier problems
513 int AbstractMethodMustBeImplemented = MethodRelated + 400;
514 int FinalMethodCannotBeOverridden = MethodRelated + 401;
515 int IncompatibleExceptionInThrowsClause = MethodRelated + 402;
516 int IncompatibleExceptionInInheritedMethodThrowsClause = MethodRelated + 403;
517 int IncompatibleReturnType = MethodRelated + 404;
518 int InheritedMethodReducesVisibility = MethodRelated + 405;
519 int CannotOverrideAStaticMethodWithAnInstanceMethod = MethodRelated + 406;
520 int CannotHideAnInstanceMethodWithAStaticMethod = MethodRelated + 407;
521 int StaticInheritedMethodConflicts = MethodRelated + 408;
522 int MethodReducesVisibility = MethodRelated + 409;
523 int OverridingNonVisibleMethod = MethodRelated + 410;
524 int AbstractMethodCannotBeOverridden = MethodRelated + 411;
525 int OverridingDeprecatedMethod = MethodRelated + 412;
527 int IncompatibleReturnTypeForNonInheritedInterfaceMethod = MethodRelated + 413;
529 int IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod = MethodRelated + 414;
531 // code snippet support
532 int CodeSnippetMissingClass = Internal + 420;
533 int CodeSnippetMissingMethod = Internal + 421;
534 int NonExternalizedStringLiteral = Internal + 261;
535 int CannotUseSuperInCodeSnippet = Internal + 422;
538 int TooManyConstantsInConstantPool = Internal + 430;
540 int TooManyBytesForStringConstant = Internal + 431;
542 // static constraints
544 int TooManyFields = Internal + 432;
546 int TooManyMethods = Internal + 433;
550 int UseAssertAsAnIdentifier = Internal + 440;
554 int Task = Internal + 450;