Lines 349-355
Link Here
|
349 |
if ((enumConstant.modifiers & ClassFileConstants.AccEnum) == 0) continue; |
349 |
if ((enumConstant.modifiers & ClassFileConstants.AccEnum) == 0) continue; |
350 |
findConstant : { |
350 |
findConstant : { |
351 |
for (int j = 0; j < caseCount; j++) { |
351 |
for (int j = 0; j < caseCount; j++) { |
352 |
if (enumConstant.id == this.constants[j]) break findConstant; |
352 |
if ((enumConstant.id + 1) == this.constants[j]) // zero should not be returned see bug 141810 |
|
|
353 |
break findConstant; |
353 |
} |
354 |
} |
354 |
// enum constant did not get referenced from switch |
355 |
// enum constant did not get referenced from switch |
355 |
upperScope.problemReporter().missingEnumConstantCase(this, enumConstant); |
356 |
upperScope.problemReporter().missingEnumConstantCase(this, enumConstant); |