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 178526 Details for
Bug 324850
Compile error claims method is missing but is inherited
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_324850.txt (text/plain), 2.84 KB, created by
Olivier Thomann
on 2010-09-09 11:39:30 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2010-09-09 11:39:30 EDT
Size:
2.84 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.201 >diff -u -r1.201 MethodVerifyTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 26 Aug 2010 15:01:18 -0000 1.201 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 9 Sep 2010 15:37:57 -0000 >@@ -16,6 +16,7 @@ > import junit.framework.Test; > > import org.eclipse.jdt.core.Flags; >+import org.eclipse.jdt.core.JavaCore; > import org.eclipse.jdt.core.ToolFactory; > import org.eclipse.jdt.core.tests.util.Util; > import org.eclipse.jdt.core.util.ClassFileBytesDisassembler; >@@ -27,7 +28,7 @@ > public class MethodVerifyTest extends AbstractComparableTest { > static { > // TESTS_NAMES = new String[] { "test211" }; >-// TESTS_NUMBERS = new int[] { 184 }; >+// TESTS_NUMBERS = new int[] { 213 }; > // TESTS_RANGE = new int[] { 190, -1}; > } > >@@ -11009,4 +11010,55 @@ > "Name clash: The method foo(T) of type Interface<T> has the same erasure as foo(T) of type Base<T> but does not override it\n" + > "----------\n"); > } >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=324850 >+public void _test213() { >+ Map compilerOptions15 = getCompilerOptions(); >+ compilerOptions15.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.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[] { >+ "Y.java", >+ "public abstract class Y implements I<Y> {\n" + >+ " public final Y foo(Object o, J<Y> j) {\n" + >+ " return null;\n" + >+ " }\n" + >+ " public final void bar(Object o, J<Y> j, Y y) {\n" + >+ " }\n" + >+ "}", >+ "I.java", >+ "public interface I<S> {\n" + >+ " public S foo(Object o, J<S> j);\n" + >+ " public void bar(Object o, J<S> j, S s);\n" + >+ "}", >+ "J.java", >+ "public interface J<S> {}" >+ }, >+ "", >+ 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); >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "public class X {\n" + >+ " public Object foo() {\n" + >+ " return new Y() {};\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 324850
:
178519
| 178526 |
178543
|
179022
|
179624
|
179799
|
179821