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 174264 Details for
Bug 308682
[1.5][compiler] Complicated generic inference confuses the compiler
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Junit tests
patch.txt (text/plain), 3.04 KB, created by
Srikanth Sankaran
on 2010-07-14 04:32:27 EDT
(
hide
)
Description:
Junit tests
Filename:
MIME Type:
Creator:
Srikanth Sankaran
Created:
2010-07-14 04:32:27 EDT
Size:
3.04 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java,v >retrieving revision 1.822 >diff -u -r1.822 GenericTypeTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 13 Jul 2010 04:02:01 -0000 1.822 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 14 Jul 2010 08:29:26 -0000 >@@ -30,7 +30,7 @@ > // 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[] { "test1245" }; >+ TESTS_NAMES = new String[] { "test1466" }; > // TESTS_NUMBERS = new int[] { 1461 }; > // TESTS_RANGE = new int[] { 1097, -1 }; > } >@@ -50531,4 +50531,37 @@ > "The inherited method Object.clone() cannot hide the public abstract method in BaseType\n" + > "----------\n"); > } >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=308682 >+public void test1465() { >+ this.runNegativeTest( >+ new String[] { >+ "Type.java", >+ "class ExtTypeImpl<STORE extends ExtStore<? extends ExtType,? extends TypeImpl<STORE>>> extends TypeImpl<STORE> {}\n" + >+ "public interface Type {}\n" + >+ "interface ExtType extends Type {}\n" + >+ "class TypeImpl<STORE extends Store<? extends Type, ? extends TypeImpl<STORE>>> {}\n" + >+ "class Store<TYPE extends Type, IMPLTYPE extends TypeImpl<? extends Store<TYPE,IMPLTYPE>>> {}\n" + >+ "class ExtStore<TYPE extends ExtType, IMPLTYPE extends TypeImpl<? extends Store<TYPE,IMPLTYPE>>> extends Store<TYPE,IMPLTYPE> {}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in Type.java (at line 1)\n" + >+ " class ExtTypeImpl<STORE extends ExtStore<? extends ExtType,? extends TypeImpl<STORE>>> extends TypeImpl<STORE> {}\n" + >+ " ^^^^^^^^^^^^^^^^^^\n" + >+ "Bound mismatch: The type ? extends TypeImpl<STORE> is not a valid substitute for the bounded parameter <IMPLTYPE extends TypeImpl<? extends Store<TYPE,IMPLTYPE>>> of the type ExtStore<TYPE,IMPLTYPE>\n" + >+ "----------\n"); >+} >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=308682 >+public void test1466() { >+ this.runNegativeTest( >+ new String[] { >+ "Type.java", >+ "class ExtTypeImpl<STORE extends ExtStore<? extends ExtType,? extends TypeImpl<STORE>>> extends TypeImpl<STORE> {}\n" + >+ "public interface Type {}\n" + >+ "interface ExtType extends Type {}\n" + >+ "class TypeImpl<STORE extends Store<? extends Type, ? extends TypeImpl<STORE>>> {}\n" + >+ "class Store<TYPE extends Type, IMPLTYPE extends TypeImpl<? extends Store<TYPE,IMPLTYPE>>> {}\n" + >+ "class ExtStore<TYPE extends ExtType, IMPLTYPE extends TypeImpl<? extends ExtStore<TYPE,IMPLTYPE>>> extends Store<TYPE,IMPLTYPE> {}\n" >+ }, >+ ""); >+} > } >\ No newline at end of file
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 308682
: 174264