Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 64451 Details for
Bug 183395
Fup of bug 144858, internal error is thrown for wrong exception type in catch clause
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression tests
patch_183395_tests.txt (text/plain), 2.08 KB, created by
Olivier Thomann
on 2007-04-20 11:06:52 EDT
(
hide
)
Description:
Regression tests
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-04-20 11:06:52 EDT
Size:
2.08 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/TryStatementTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TryStatementTest.java,v >retrieving revision 1.37 >diff -u -r1.37 TryStatementTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/TryStatementTest.java 3 Apr 2007 16:25:53 -0000 1.37 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/TryStatementTest.java 20 Apr 2007 15:07:44 -0000 >@@ -5444,6 +5444,50 @@ > assertTrue(false); > } > } >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=183395 >+public void test059() { >+ this.runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X {\n" + >+ " public static void main(String[] args) {\n" + >+ " try {\n" + >+ " System.out.println(args.length);\n" + >+ " } catch(Exception[] e) {\n" + >+ " // ignore\n" + >+ " }\n" + >+ " }\n" + >+ "}" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 5)\n" + >+ " } catch(Exception[] e) {\n" + >+ " ^^^^^^^^^^^\n" + >+ "No exception of type Exception[] can be thrown; an exception type must be a subclass of Throwable\n" + >+ "----------\n"); >+} >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=183395 >+public void test060() { >+ this.runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X {\n" + >+ " public static void main(String[] args) {\n" + >+ " try {\n" + >+ " System.out.println(args.length);\n" + >+ " } catch(int e) {\n" + >+ " // ignore\n" + >+ " }\n" + >+ " }\n" + >+ "}" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 5)\n" + >+ " } catch(int e) {\n" + >+ " ^^^\n" + >+ "No exception of type int can be thrown; an exception type must be a subclass of Throwable\n" + >+ "----------\n"); >+} > public static Class testClass() { > return TryStatementTest.class; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 183395
:
64450
| 64451