Bug 196653

Summary: [compiler] More resilience with unbound caught exceptions
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jerome_lanneluc
Version: 3.3   
Target Milestone: 3.4 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description Philipe Mulet CLA 2007-07-16 10:23:17 EDT
Build 3.3.0

In following code, observe that resilience on catch block variable is not as good as for standard local variable with unbound type.

public class X {
	void bar() {
		try {
			Zork z = null;
			z.foo();
		} catch(Zork z) {
			z.foo();
		}		
	}
}

The unbound exception type shouldn't block the variable from being declared, so that secondary errors are avoided.
Comment 1 Philipe Mulet CLA 2007-07-16 12:15:51 EDT
Created attachment 73861 [details]
Proposed patch
Comment 2 Philipe Mulet CLA 2007-09-03 10:43:07 EDT
Released for 3.4M1.

(was released for 3.4M1, but bug remained open - my fault)
Comment 3 Jerome Lanneluc CLA 2007-09-03 11:35:53 EDT
Verified for 3.4M1 using build I20070809-0010.