Community
Participate
Working Groups
Compiling the following CU results in an error on the secon local variable: Duplicate local variable i X.java: public class X { void foo() { try { int i = 0; } finally { try { int i = 1; } finally { return; } } } } javac 1.3 and 1.4 both accept this scenario
This is a regression introduced by a naive fix to: 1GDS7IP: ITPJCORE:WIN2000 - VerifyError related to a local index computation The real fix would be to shift variables positions in finally blocks to be located after the scope of the try block, but the finally scope should remain a sibling of the try block scope.
Another symptom of 4943, the bug fix was invalid. *** This bug has been marked as a duplicate of 4943 ***