Community
Participate
Working Groups
Created attachment 181814 [details] Patch V01 http://dev.eclipse.org/mhonarc/lists/platform-releng-dev/msg17570.html Before doing the build submission, I am expanding the shorthand operators so that these are not marked as errors. Please look into the tests as indicated by the attached patch. Build Id: I20101025-1800
Why are the short-hand operators marked as errors now? I thought this was just about unused locals? PW
Ah, it's just now catching write-only operations. I'd just delete the variable, since it's still not doing anything, and open another bug to actually write up the test methods for those 2 classes :-) PW
(In reply to comment #2) > Ah, it's just now catching write-only operations. I'd just delete the > variable, since it's still not doing anything, and open another bug to actually > write up the test methods for those 2 classes :-) > > PW Yes it is still about unused locals. The point to be noted is that 'a++' is not taken to read the local variable 'a'. While in case of 'a = a + 1', variable 'a' is taken to be read before incrementing. The set of changes in the patch was never reported as errors in my workspace before. There has obviously been some change, and it marks them as errors now. Nonetheless they are unused variables, and regardless of the changes indicated , they do call for attention. I could have done away completely with them, but the question I had was how did they suddenly become unused.
(In reply to comment #3) > The set of changes in the patch was never reported as errors in my workspace > before. There has obviously been some change, and it marks them as errors now. > Nonetheless they are unused variables, and regardless of the changes indicated > , they do call for attention. I could have done away completely with them, but > the question I had was how did they suddenly become unused. Was this patch checked in? If so, could you mark this as fixed and open a new bug about actually fixing the tests in question (as they are bogus at the moment)? PW
(In reply to comment #4) A new bug to investigate those testcases sounds good to me too. Thanks. Marking as fixed.