Community
Participate
Working Groups
Comppile the attached A.java. Eclipse 3.0 reports: Exception Table: [pc: 4, pc: 17] -> 17 when : any [pc: 0, pc: 23] -> 23 when : any [pc: 42, pc: 45] -> 23 when : any HEAD reports: Exception Table: [pc: 4, pc: 14] -> 17 when : any [pc: 17, pc: 19] -> 17 when : any [pc: 0, pc: 28] -> 23 when : any [pc: 42, pc: 45] -> 23 when : any I would say that this is suspicious. I don't understand why the exception handler would go backwards (0-28 -> 23). I will attach proposed patches.
Created attachment 13931 [details] Source code to compile
Created attachment 13932 [details] Apply on HEAD of jdt.core project
Created attachment 13933 [details] Apply on HEAD of jdt.core tests project
Created attachment 13934 [details] Apply on HEAD of jdt.core compiler tests project
With the patch we would have: [pc: 4, pc: 17] -> 17 when : any [pc: 0, pc: 23] -> 23 when : any [pc: 42, pc: 45] -> 23 when : any This looks much better. I will release the changes to fix this. I need these changes to updates the tests for bug 70997. Philippe, please review the changes.
Fixed and released in HEAD. Regression tests added.
Reverted the changes for the synchronized statement.
jck tests were affected by this change.
Reopen to close as invalid since the synchronized statement needs to be untouched.
The changes remain valid for the try/finally.
The test case is invalid since it contains a synchronized statement.
Verified in I200409212000.