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 82301 Details for
Bug 208960
[cldc1.1][compiler] Internal Compiler Error on valid code with particular combination of org.eclipse.jdt.core.compiler.codegen.targetPlatform and o.e.j.c.c.source
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_208960_tests.txt (text/plain), 1.99 KB, created by
Olivier Thomann
on 2007-11-06 23:18:30 EST
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-11-06 23:18:30 EST
Size:
1.99 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_CLDC.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_CLDC.java,v >retrieving revision 1.4 >diff -u -r1.4 Compliance_CLDC.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_CLDC.java 16 Oct 2007 10:24:50 -0000 1.4 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_CLDC.java 7 Nov 2007 04:16:22 -0000 >@@ -262,4 +262,55 @@ > "}"; > checkDisassembledClassFile(OUTPUT_DIR + File.separator + "X.class", "X", expectedOutput); > } >+public void test004() { >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.io.InputStream;\n" + >+ "\n" + >+ "public class X {\n" + >+ " private static final Y[] A = new Y[1];\n" + >+ "\n" + >+ " public static void x() {\n" + >+ " for (int i = 0; i < 0; i++) {\n" + >+ " try {\n" + >+ " A[i] = foo(X.class.getResourceAsStream(\"\"), null);\n" + >+ " } catch (Throwable e) {\n" + >+ " }\n" + >+ " }\n" + >+ " }\n" + >+ "\n" + >+ " public static boolean a = false;\n" + >+ "\n" + >+ " private static int b = -1;\n" + >+ "\n" + >+ " private static int C = 0;\n" + >+ "\n" + >+ " public static void z(int c) {\n" + >+ " if (!a || (b == c && A[c].foo() == C)) {\n" + >+ " return;\n" + >+ " }\n" + >+ " y();\n" + >+ " b = c;\n" + >+ " try {\n" + >+ " A[c].bar();\n" + >+ " } catch (Throwable e) {\n" + >+ " }\n" + >+ " }\n" + >+ "\n" + >+ " public static void y() {\n" + >+ " }\n" + >+ "\n" + >+ " static Y foo(InputStream stream, String s) {\n" + >+ " return null;\n" + >+ " }\n" + >+ "}", >+ "Y.java", >+ "interface Y {\n" + >+ " int foo();\n" + >+ " void bar();\n" + >+ "}" >+ }, >+ ""); >+ } > }
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 208960
:
82276
|
82300
| 82301