Lines 105-110
Link Here
|
105 |
public static final String OPTION_FatalOptionalError = "org.eclipse.jdt.core.compiler.problem.fatalOptionalError"; //$NON-NLS-1$ |
105 |
public static final String OPTION_FatalOptionalError = "org.eclipse.jdt.core.compiler.problem.fatalOptionalError"; //$NON-NLS-1$ |
106 |
public static final String OPTION_ReportParameterAssignment = "org.eclipse.jdt.core.compiler.problem.parameterAssignment"; //$NON-NLS-1$ |
106 |
public static final String OPTION_ReportParameterAssignment = "org.eclipse.jdt.core.compiler.problem.parameterAssignment"; //$NON-NLS-1$ |
107 |
public static final String OPTION_ReportFallthroughCase = "org.eclipse.jdt.core.compiler.problem.fallthroughCase"; //$NON-NLS-1$ |
107 |
public static final String OPTION_ReportFallthroughCase = "org.eclipse.jdt.core.compiler.problem.fallthroughCase"; //$NON-NLS-1$ |
|
|
108 |
public static final String OPTION_ReportOverridingMethodWithoutSuperInvocation = "org.eclipse.jdt.core.compiler.problem.overridingMethodWithoutSuperInvocation"; //$NON-NLS-1$ |
108 |
|
109 |
|
109 |
// Backward compatibility |
110 |
// Backward compatibility |
110 |
public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$ |
111 |
public static final String OPTION_ReportInvalidAnnotation = "org.eclipse.jdt.core.compiler.problem.invalidAnnotation"; //$NON-NLS-1$ |
Lines 187-192
Link Here
|
187 |
public static final long UnusedLabel = ASTNode.Bit47L; |
188 |
public static final long UnusedLabel = ASTNode.Bit47L; |
188 |
public static final long ParameterAssignment = ASTNode.Bit48L; |
189 |
public static final long ParameterAssignment = ASTNode.Bit48L; |
189 |
public static final long FallthroughCase = ASTNode.Bit49L; |
190 |
public static final long FallthroughCase = ASTNode.Bit49L; |
|
|
191 |
public static final long OverridingMethodWithoutSuperInvocation = ASTNode.Bit50L; |
190 |
|
192 |
|
191 |
// Default severity level for handlers |
193 |
// Default severity level for handlers |
192 |
public long errorThreshold = 0; |
194 |
public long errorThreshold = 0; |
Lines 406-411
Link Here
|
406 |
optionsMap.put(OPTION_ReportUnhandledWarningToken, getSeverityString(UnhandledWarningToken)); |
408 |
optionsMap.put(OPTION_ReportUnhandledWarningToken, getSeverityString(UnhandledWarningToken)); |
407 |
optionsMap.put(OPTION_ReportParameterAssignment, getSeverityString(ParameterAssignment)); |
409 |
optionsMap.put(OPTION_ReportParameterAssignment, getSeverityString(ParameterAssignment)); |
408 |
optionsMap.put(OPTION_ReportFallthroughCase, getSeverityString(FallthroughCase)); |
410 |
optionsMap.put(OPTION_ReportFallthroughCase, getSeverityString(FallthroughCase)); |
|
|
411 |
optionsMap.put(OPTION_ReportOverridingMethodWithoutSuperInvocation, getSeverityString(OverridingMethodWithoutSuperInvocation)); |
409 |
return optionsMap; |
412 |
return optionsMap; |
410 |
} |
413 |
} |
411 |
|
414 |
|
Lines 647-652
Link Here
|
647 |
if ((optionValue = optionsMap.get(OPTION_ReportUnusedLabel)) != null) updateSeverity(UnusedLabel, optionValue); |
650 |
if ((optionValue = optionsMap.get(OPTION_ReportUnusedLabel)) != null) updateSeverity(UnusedLabel, optionValue); |
648 |
if ((optionValue = optionsMap.get(OPTION_ReportParameterAssignment)) != null) updateSeverity(ParameterAssignment, optionValue); |
651 |
if ((optionValue = optionsMap.get(OPTION_ReportParameterAssignment)) != null) updateSeverity(ParameterAssignment, optionValue); |
649 |
if ((optionValue = optionsMap.get(OPTION_ReportFallthroughCase)) != null) updateSeverity(FallthroughCase, optionValue); |
652 |
if ((optionValue = optionsMap.get(OPTION_ReportFallthroughCase)) != null) updateSeverity(FallthroughCase, optionValue); |
|
|
653 |
if ((optionValue = optionsMap.get(OPTION_ReportOverridingMethodWithoutSuperInvocation)) != null) updateSeverity(OverridingMethodWithoutSuperInvocation, optionValue); |
650 |
|
654 |
|
651 |
// Javadoc options |
655 |
// Javadoc options |
652 |
if ((optionValue = optionsMap.get(OPTION_DocCommentSupport)) != null) { |
656 |
if ((optionValue = optionsMap.get(OPTION_DocCommentSupport)) != null) { |
Lines 914-919
Link Here
|
914 |
OPTION_ReportUnusedPrivateMember, |
918 |
OPTION_ReportUnusedPrivateMember, |
915 |
OPTION_ReportVarargsArgumentNeedCast, |
919 |
OPTION_ReportVarargsArgumentNeedCast, |
916 |
OPTION_ReportUnhandledWarningToken, |
920 |
OPTION_ReportUnhandledWarningToken, |
|
|
921 |
OPTION_ReportOverridingMethodWithoutSuperInvocation |
917 |
}; |
922 |
}; |
918 |
return result; |
923 |
return result; |
919 |
} |
924 |
} |
Lines 976-981
Link Here
|
976 |
return "null"; //$NON-NLS-1$ |
981 |
return "null"; //$NON-NLS-1$ |
977 |
case (int) (FallthroughCase >>> 32) : |
982 |
case (int) (FallthroughCase >>> 32) : |
978 |
return "fallthrough"; //$NON-NLS-1$ |
983 |
return "fallthrough"; //$NON-NLS-1$ |
|
|
984 |
case (int) (OverridingMethodWithoutSuperInvocation >>> 32) : |
985 |
return "super"; //$NON-NLS-1$ |
979 |
} |
986 |
} |
980 |
} |
987 |
} |
981 |
return null; |
988 |
return null; |
Lines 996-1001
Link Here
|
996 |
"restriction", //$NON-NLS-1$ |
1003 |
"restriction", //$NON-NLS-1$ |
997 |
"serial", //$NON-NLS-1$ |
1004 |
"serial", //$NON-NLS-1$ |
998 |
"static-access", //$NON-NLS-1$ |
1005 |
"static-access", //$NON-NLS-1$ |
|
|
1006 |
"super", //$NON-NLS-1$ |
999 |
"synthetic-access", //$NON-NLS-1$ |
1007 |
"synthetic-access", //$NON-NLS-1$ |
1000 |
"unchecked", //$NON-NLS-1$ |
1008 |
"unchecked", //$NON-NLS-1$ |
1001 |
"unqualified-field-access", //$NON-NLS-1$ |
1009 |
"unqualified-field-access", //$NON-NLS-1$ |
Lines 1053-1058
Link Here
|
1053 |
return IndirectStaticAccess | NonStaticAccessToStatic; |
1061 |
return IndirectStaticAccess | NonStaticAccessToStatic; |
1054 |
if ("synthetic-access".equals(warningToken)) //$NON-NLS-1$ |
1062 |
if ("synthetic-access".equals(warningToken)) //$NON-NLS-1$ |
1055 |
return AccessEmulation; |
1063 |
return AccessEmulation; |
|
|
1064 |
if ("super".equals(warningToken)) { //$NON-NLS-1$ |
1065 |
return OverridingMethodWithoutSuperInvocation; |
1066 |
} |
1056 |
break; |
1067 |
break; |
1057 |
case 'u' : |
1068 |
case 'u' : |
1058 |
if ("unused".equals(warningToken)) //$NON-NLS-1$ |
1069 |
if ("unused".equals(warningToken)) //$NON-NLS-1$ |