Community
Participate
Working Groups
Build ID: jdt 3.4.1 release Steps To Reproduce: 1. call org.eclipse.jdt.internal.compiler.impl.CompilerOptions.optionKeyFromIrritant(long) with FinalParameterBound as its argument. 2. It ought to return an option. Instead it returns null because the following code is unreachable (see below). More information: public static String optionKeyFromIrritant(long irritant) { // keep in sync with warningTokens and warningTokenToIrritant int irritantInt = (int) irritant; // results in negative int for longs >= 0x80000000 if (irritantInt == irritant) { // fails for FinalParameterBound because the negative int is promoted to a negative long switch (irritantInt) { // ... case (int) FinalParameterBound : // unreachable return OPTION_ReportFinalParameterBound; }
*** This bug has been marked as a duplicate of bug 245973 ***
Verified for 3.5M3 using I20081026-2000 build.