Community
Participate
Working Groups
Example code: public TestResultSet foo(int a) { if(a<CONSTANT) TestResultSet result = new TestResultSet(1); else TestResultSet result = new TestResultSet(2); return result; } This code givs me a syntax error in the third line on the word "result" telling me that on of "==","<="... was expected. But the actual error is that result is declared inside the if statment. If I use brackets... public TestResultSet foo(int a) { if(a<CONSTANT) { TestResultSet result = new TestResultSet(1); } else { TestResultSet result = new TestResultSet(2); } return result; } ... the error message is fine. Email me for the whole code if necessary. Cheers.
Which build are you using ? Also, please attach entire test case since the offending message is likely very contextual.
Unfortunately I cannot provide the exact example code because it is IBM confidential. However I am using revision 200306271545.
I cannot reproduce the problem without a complete test case. If you can give me a test case, reopen the bug.
Timed out
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.