X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/compiler/IProblem.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/compiler/IProblem.java index 903396b..b143082 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/compiler/IProblem.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/compiler/IProblem.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2002 IBM Corp. and others. + * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at @@ -11,7 +11,8 @@ * NonStaticAccessToStaticField * NonStaticAccessToStaticMethod * Task - * NoOpAssignment + * ExpressionShouldBeAVariable + * AssignmentHasNoEffect * IBM Corporation - added the following constants * TooManySyntheticArgumentSlots * TooManyArrayDimensions @@ -21,8 +22,16 @@ * NonBlankFinalLocalAssignment * ObjectCannotHaveSuperTypes * MissingSemiColon - * InvalidExpressionAsName - ****************************************************************************/ + * InvalidParenthesizedExpression + * EnclosingInstanceInConstructorCall + * BytecodeExceeds64KLimitForConstructor + * IncompatibleReturnTypeForNonInheritedInterfaceMethod + * UnusedPrivateMethod + * UnusedPrivateConstructor + * UnusedPrivateType + * UnusedPrivateField + * IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod + *******************************************************************************/ package net.sourceforge.phpdt.core.compiler; import net.sourceforge.phpdt.internal.compiler.lookup.ProblemReasons; @@ -135,7 +144,7 @@ public interface IProblem { /** * Problem Categories * The high bits of a problem ID contains information about the category of a problem. - * e.g. (problemID & TypeRelated) != 0, indicates that this problem is type related. + * For example, (problemID & TypeRelated) != 0, indicates that this problem is type related. * * A problem category can help to implement custom problem filters. Indeed, when numerous problems * are listed, focusing on import related problems first might be relevant. @@ -176,7 +185,9 @@ public interface IProblem { int AmbiguousType = TypeRelated + 4; int UsingDeprecatedType = TypeRelated + 5; int InternalTypeNameProvided = TypeRelated + 6; - + /** @since 2.1 */ + int UnusedPrivateType = Internal + TypeRelated + 7; + int IncompatibleTypesInEqualityOperator = TypeRelated + 15; int IncompatibleTypesInConditionalOperator = TypeRelated + 16; int TypeMismatch = TypeRelated + 17; @@ -192,6 +203,8 @@ public interface IProblem { int OuterLocalMustBeFinal = Internal + 25; int CannotDefineInterfaceInLocalType = Internal + 26; int IllegalPrimitiveOrArrayTypeForEnclosingInstance = TypeRelated + 27; + /** @since 2.1 */ + int EnclosingInstanceInConstructorCall = Internal + 28; int AnonymousClassCannotExtendFinalClass = TypeRelated + 29; // variables @@ -218,6 +231,8 @@ public interface IProblem { int TooManySyntheticArgumentSlots = Internal + 67; /** @since 2.1 */ int TooManyArrayDimensions = Internal + 68; + /** @since 2.1 */ + int BytecodeExceeds64KLimitForConstructor = Internal + 69; // fields int UndefinedField = FieldRelated + 70; @@ -228,6 +243,8 @@ public interface IProblem { int ReferenceToForwardField = FieldRelated + Internal + 75; /** @since 2.1 */ int NonStaticAccessToStaticField = Internal + FieldRelated + 76; + /** @since 2.1 */ + int UnusedPrivateField = Internal + FieldRelated + 77; // blank final fields int FinalFieldAssignment = FieldRelated + 80; @@ -253,12 +270,16 @@ public interface IProblem { int NoMessageSendOnArrayType = MethodRelated + 116; /** @since 2.1 */ int NonStaticAccessToStaticMethod = Internal + MethodRelated + 117; - + /** @since 2.1 */ + int UnusedPrivateMethod = Internal + MethodRelated + 118; + // constructors int UndefinedConstructor = ConstructorRelated + 130; int NotVisibleConstructor = ConstructorRelated + 131; int AmbiguousConstructor = ConstructorRelated + 132; int UsingDeprecatedConstructor = ConstructorRelated + 133; + /** @since 2.1 */ + int UnusedPrivateConstructor = Internal + MethodRelated + 134; // explicit constructor calls int InstanceFieldDuringConstructorInvocation = ConstructorRelated + 135; int InstanceMethodDuringConstructorInvocation = ConstructorRelated + 136; @@ -343,12 +364,22 @@ public interface IProblem { int ArrayConstantsOnlyInArrayInitializers = Syntax + Internal + 208; int ParsingErrorOnKeyword = Syntax + Internal + 209; int ParsingErrorOnKeywordNoSuggestion = Syntax + Internal + 210; - + int PHPParsingError = Syntax + Internal + 211; + int PHPParsingWarning = Syntax + Internal + 212; + int PHPVarDeprecatedWarning = Syntax + Internal + 213; + int PHPBadStyleKeywordWarning = Syntax + Internal + 214; + int PHPBadStyleUppercaseIdentifierWarning = Syntax + Internal + 215; + int PHPIncludeNotExistWarning = Syntax + Internal + 216; + int UnmatchedBracket = Syntax + Internal + 220; int NoFieldOnBaseType = FieldRelated + 221; int InvalidExpressionAsStatement = Syntax + Internal + 222; + /** @since 2.1 */ int ExpressionShouldBeAVariable = Syntax + Internal + 223; + /** @since 2.1 */ int MissingSemiColon = Syntax + Internal + 224; + /** @since 2.1 */ + int InvalidParenthesizedExpression = Syntax + Internal + 225; // scanner errors int EndOfSource = Syntax + Internal + 250; @@ -388,11 +419,12 @@ public interface IProblem { int PackageCollidesWithType = TypeRelated + 321; int TypeCollidesWithPackage = TypeRelated + 322; int DuplicateTypes = TypeRelated + 323; -// int IsClassPathCorrect = TypeRelated + 324; + int IsClassPathCorrect = TypeRelated + 324; int PublicClassMustMatchFileName = TypeRelated + 325; int MustSpecifyPackage = 326; int HierarchyHasProblems = TypeRelated + 327; int PackageIsNotExpectedPackage = 328; + /** @since 2.1 */ int ObjectCannotHaveSuperTypes = 329; // int InvalidSuperclassBase = TypeRelated + 329; // reserved to 334 included @@ -494,7 +526,11 @@ public interface IProblem { int OverridingNonVisibleMethod = MethodRelated + 410; int AbstractMethodCannotBeOverridden = MethodRelated + 411; int OverridingDeprecatedMethod = MethodRelated + 412; - + /** @since 2.1 */ + int IncompatibleReturnTypeForNonInheritedInterfaceMethod = MethodRelated + 413; + /** @since 2.1 */ + int IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod = MethodRelated + 414; + // code snippet support int CodeSnippetMissingClass = Internal + 420; int CodeSnippetMissingMethod = Internal + 421; @@ -503,10 +539,13 @@ public interface IProblem { //constant pool int TooManyConstantsInConstantPool = Internal + 430; + /** @since 2.1 */ int TooManyBytesForStringConstant = Internal + 431; // static constraints + /** @since 2.1 */ int TooManyFields = Internal + 432; + /** @since 2.1 */ int TooManyMethods = Internal + 433; // 1.4 features