Lines 198-205
Link Here
|
198 |
int incompatibleWithAbstract = ClassFileConstants.AccPrivate | ClassFileConstants.AccStatic | ClassFileConstants.AccFinal | ClassFileConstants.AccSynchronized | ClassFileConstants.AccNative | ClassFileConstants.AccStrictfp; |
198 |
int incompatibleWithAbstract = ClassFileConstants.AccPrivate | ClassFileConstants.AccStatic | ClassFileConstants.AccFinal | ClassFileConstants.AccSynchronized | ClassFileConstants.AccNative | ClassFileConstants.AccStrictfp; |
199 |
if ((modifiers & incompatibleWithAbstract) != 0) |
199 |
if ((modifiers & incompatibleWithAbstract) != 0) |
200 |
problemReporter().illegalAbstractModifierCombinationForMethod(declaringClass, (AbstractMethodDeclaration) this.referenceContext); |
200 |
problemReporter().illegalAbstractModifierCombinationForMethod(declaringClass, (AbstractMethodDeclaration) this.referenceContext); |
201 |
if (!methodBinding.declaringClass.isAbstract()) |
201 |
if (!methodBinding.declaringClass.isAbstract()) { |
|
|
202 |
modifiers &= ~ClassFileConstants.AccAbstract; |
202 |
problemReporter().abstractMethodInAbstractClass((SourceTypeBinding) declaringClass, (AbstractMethodDeclaration) this.referenceContext); |
203 |
problemReporter().abstractMethodInAbstractClass((SourceTypeBinding) declaringClass, (AbstractMethodDeclaration) this.referenceContext); |
|
|
204 |
} |
203 |
} |
205 |
} |
204 |
|
206 |
|
205 |
/* DISABLED for backward compatibility with javac (if enabled should also mark private methods as final) |
207 |
/* DISABLED for backward compatibility with javac (if enabled should also mark private methods as final) |