Bug 183395 - Fup of bug 144858, internal error is thrown for wrong exception type in catch clause
Summary: Fup of bug 144858, internal error is thrown for wrong exception type in catch...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-20 10:58 EDT by Olivier Thomann CLA
Modified: 2007-04-27 11:08 EDT (History)
1 user (show)

See Also:


Attachments
Proposed fix (2.04 KB, patch)
2007-04-20 11:01 EDT, Olivier Thomann CLA
no flags Details | Diff
Regression tests (2.08 KB, patch)
2007-04-20 11:06 EDT, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2007-04-20 10:58:22 EDT
Using v_749, the following code produces an Internal compiler error.

public class X {
    public static void main(String[] args) {
    	try {
    		System.out.println(args.length);
    	} catch(Exception[] e) {
    		// ignore
    	}
    }
}
or:
public class X {
    public static void main(String[] args) {
    	try {
    		System.out.println(args.length);
    	} catch(int e) {
    		// ignore
    	}
    }
}
Comment 1 Olivier Thomann CLA 2007-04-20 11:01:35 EDT
Created attachment 64450 [details]
Proposed fix
Comment 2 Olivier Thomann CLA 2007-04-20 11:06:52 EDT
Created attachment 64451 [details]
Regression tests
Comment 3 Olivier Thomann CLA 2007-04-21 16:57:32 EDT
Released for 3.3M7.
Regression tests added org.eclipse.jdt.core.tests.compiler.regression.TryStatementTest.test059()
org.eclipse.jdt.core.tests.compiler.regression.TryStatementTest.test060()
Comment 4 David Audel CLA 2007-04-27 11:08:58 EDT
Verified for 3.3 M7 using build I20070427-0010