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 23192 Details for
Bug 100162
java.lang.VerifyError is produced by Eclipse Java compiler
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Corresponding regression test
patch_100162_tests.txt (text/plain), 3.04 KB, created by
Olivier Thomann
on 2005-06-15 10:15:04 EDT
(
hide
)
Description:
Corresponding regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-06-15 10:15:04 EDT
Size:
3.04 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/TestAll.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TestAll.java,v >retrieving revision 1.39 >diff -u -r1.39 TestAll.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/TestAll.java 23 Feb 2005 02:52:37 -0000 1.39 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/TestAll.java 15 Jun 2005 14:15:13 -0000 >@@ -49,6 +49,7 @@ > standardTests.add(UtilTest.class); > standardTests.add(XLargeTest.class); > standardTests.add(InternalScannerTest.class); >+ standardTests.add(ConditionalExpressionTest.class); > // add all javadoc tests > for (int i=0, l=JavadocTest.ALL_CLASSES.size(); i<l; i++) { > standardTests.add(JavadocTest.ALL_CLASSES.get(i)); >Index: src/org/eclipse/jdt/core/tests/compiler/regression/ConditionalExpressionTest.java >=================================================================== >RCS file: src/org/eclipse/jdt/core/tests/compiler/regression/ConditionalExpressionTest.java >diff -N src/org/eclipse/jdt/core/tests/compiler/regression/ConditionalExpressionTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/ConditionalExpressionTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,52 @@ >+/******************************************************************************* >+ * Copyright (c) 2005 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.jdt.core.tests.compiler.regression; >+ >+import junit.framework.Test; >+ >+public class ConditionalExpressionTest extends AbstractRegressionTest { >+ >+ public ConditionalExpressionTest(String name) { >+ super(name); >+ } >+ >+ // Static initializer to specify tests subset using TESTS_* static variables >+ // All specified tests which does not belong to the class are skipped... >+// static { >+// TESTS_NAMES = new String[] { "test000" }; >+// TESTS_NUMBERS = new int[] { 65 }; >+// TESTS_RANGE = new int[] { 11, -1 }; >+// } >+ public static Test suite() { >+ return setupSuite(testClass()); >+ } >+ >+ public static Class testClass() { >+ return ConditionalExpressionTest.class; >+ } >+ >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=100162 >+ public void test001() { >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "public class X {\n" + >+ " final boolean isA = true;\n" + >+ " public static void main(String[] args) {\n" + >+ " X x = new X();\n" + >+ " System.out.print(x.isA ? \"SUCCESS\" : \"FAILURE\");\n" + >+ " }\n" + >+ "}", >+ }, >+ "SUCCESS" >+ ); >+ } >+}
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 100162
:
23188
| 23192