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 185987 Details for
Bug 332744
Generated model code doesn't compile with J2SE-1.4 execution environment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
junit tests
patch.txt (text/plain), 3.82 KB, created by
Srikanth Sankaran
on 2011-01-04 04:47:28 EST
(
hide
)
Description:
junit tests
Filename:
MIME Type:
Creator:
Srikanth Sankaran
Created:
2011-01-04 04:47:28 EST
Size:
3.82 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java,v >retrieving revision 1.221 >diff -u -r1.221 MethodVerifyTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 3 Dec 2010 08:44:25 -0000 1.221 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 4 Jan 2011 09:44:46 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2010 IBM Corporation and others. >+ * Copyright (c) 2000, 2011 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 >@@ -11875,4 +11875,97 @@ > compilerOptions14, > null); > } >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=332744 (all 1.5+) >+public void test332744() { >+ Map compilerOptions15 = getCompilerOptions(); >+ compilerOptions15.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, CompilerOptions.VERSION_1_5); >+ compilerOptions15.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_5); >+ compilerOptions15.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_5); >+ this.runConformTest( >+ new String[] { >+ "EList.java", >+ "import java.util.List;\n" + >+ "public interface EList<E> extends List<E> {\n" + >+ "}\n", >+ "FeatureMap.java", >+ "public interface FeatureMap extends EList<FeatureMap.Entry> {\n" + >+ " interface Entry {\n" + >+ " }\n" + >+ "}\n", >+ "InternalEList.java", >+ "public interface InternalEList<E> extends EList<E> {\n" + >+ "}\n" >+ }, >+ "", >+ null, >+ true, >+ null, >+ compilerOptions15, >+ null); >+ >+ this.runConformTest( >+ new String[] { >+ "Client.java", >+ "public class Client {\n" + >+ " Client(FeatureMap fm) {\n" + >+ " InternalEList e = (InternalEList) fm;\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "", >+ null, >+ false, >+ null, >+ compilerOptions15, >+ null); >+} >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=332744 (1.4/1.5 mix) >+public void test332744b() { >+ Map compilerOptions15 = getCompilerOptions(); >+ compilerOptions15.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, CompilerOptions.VERSION_1_5); >+ compilerOptions15.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_5); >+ compilerOptions15.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_5); >+ this.runConformTest( >+ new String[] { >+ "EList.java", >+ "import java.util.List;\n" + >+ "public interface EList<E> extends List<E> {\n" + >+ "}\n", >+ "FeatureMap.java", >+ "public interface FeatureMap extends EList<FeatureMap.Entry> {\n" + >+ " interface Entry {\n" + >+ " }\n" + >+ "}\n", >+ "InternalEList.java", >+ "public interface InternalEList<E> extends EList<E> {\n" + >+ "}\n" >+ }, >+ "", >+ null, >+ true, >+ null, >+ compilerOptions15, >+ null); >+ >+ Map compilerOptions14 = getCompilerOptions(); >+ compilerOptions14.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_2); >+ compilerOptions14.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_4); >+ compilerOptions14.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_3); >+ compilerOptions14.put(JavaCore.COMPILER_PB_UNNECESSARY_TYPE_CHECK, JavaCore.IGNORE); >+ this.runConformTest( >+ new String[] { >+ "Client.java", >+ "public class Client {\n" + >+ " Client(FeatureMap fm) {\n" + >+ " InternalEList e = (InternalEList) fm;\n" + >+ " }\n" + >+ "}\n" >+ }, >+ "", >+ null, >+ false, >+ null, >+ compilerOptions14, >+ null); >+} > }
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 332744
:
185326
|
185987
|
185993