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 23615 Details for
Bug 100619
[1.5][compiler] Incorrect duplicate bound diagnosis
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for compiler tests
100619-tests-compiler.txt (text/plain), 4.00 KB, created by
Philipe Mulet
on 2005-06-21 09:23:38 EDT
(
hide
)
Description:
Patch for compiler tests
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2005-06-21 09:23:38 EDT
Size:
4.00 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java,v >retrieving revision 1.319 >diff -u -r1.319 GenericTypeTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 17 Jun 2005 09:26:42 -0000 1.319 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 21 Jun 2005 13:10:44 -0000 >@@ -11606,7 +11606,7 @@ > "1. ERROR in X5.java (at line 1)\n" + > " class X5 <T extends Y & Comparable<X5>> {}\n" + > " ^^^^^^^^^^\n" + >- "Bound conflict: Comparable<X5> is inherited with conflicting arguments\n" + >+ "The interface Comparable cannot be implemented more than once with different arguments: Comparable<X5> and Comparable<Y>\n" + > "----------\n" > // Comparable cannot be inherited with different arguments: <X5> and <Y> > ); >@@ -11618,10 +11618,10 @@ > "abstract class Z implements Comparable<Z> {}", > }, > "----------\n" + >- "1. ERROR in X6.java (at line 1)\r\n" + >- " class X6 <T extends Y & Comparable<X6>> {}\r\n" + >+ "1. ERROR in X6.java (at line 1)\n" + >+ " class X6 <T extends Y & Comparable<X6>> {}\n" + > " ^^^^^^^^^^\n" + >- "Bound conflict: Comparable<X6> is inherited with conflicting arguments\n" + >+ "The interface Comparable cannot be implemented more than once with different arguments: Comparable<X6> and Comparable<Z>\n" + > "----------\n" > // Comparable cannot be inherited with different arguments: <X6> and <Y> > ); >@@ -11633,10 +11633,10 @@ > "abstract class Z implements Comparable<Z> {}", > }, > "----------\n" + >- "1. ERROR in X7.java (at line 1)\r\n" + >- " class X7 <T extends Comparable<Z> & Comparable<X7>> {}\r\n" + >+ "1. ERROR in X7.java (at line 1)\n" + >+ " class X7 <T extends Comparable<Z> & Comparable<X7>> {}\n" + > " ^^^^^^^^^^\n" + >- "Bound conflict: Comparable<X7> is inherited with conflicting arguments\n" + >+ "The interface Comparable cannot be implemented more than once with different arguments: Comparable<X7> and Comparable<Z>\n" + > "----------\n" > // Comparable cannot be inherited with different arguments: <Z> and <X7> > ); >@@ -22010,5 +21984,134 @@ > }, > ""); > } > >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=100619 >+public void test768() { >+ this.runNegativeTest( >+ new String[] { >+ "X.java", >+ "public class X {\n" + >+ " <T extends Runnable, U extends Runnable & T> T foo1() { return null; }\n" + >+ " <T extends Y<Object>, U extends Z & T> T foo2() { return null; }\n" + >+ " <T extends Y<Object>, U extends T & Z> T foo3() { return null; }\n" + >+ " <T extends Y<Object>, U extends W & Z> T foo4() { return null; }\n" + >+ "}\n" + >+ "\n" + >+ "interface Y<T> {\n" + >+ "}\n" + >+ "\n" + >+ "interface Z extends Y<String> {}\n" + >+ "interface W extends Y<Object> {}\n", >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 2)\n" + >+ " <T extends Runnable, U extends Runnable & T> T foo1() { return null; }\n" + >+ " ^\n" + >+ "The type T is not an interface; it cannot be specified as a bounded parameter\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 3)\n" + >+ " <T extends Y<Object>, U extends Z & T> T foo2() { return null; }\n" + >+ " ^\n" + >+ "The type T is not an interface; it cannot be specified as a bounded parameter\n" + >+ "----------\n" + >+ "3. ERROR in X.java (at line 5)\n" + >+ " <T extends Y<Object>, U extends W & Z> T foo4() { return null; }\n" + >+ " ^\n" + >+ "The interface Y cannot be implemented more than once with different arguments: Y<String> and Y<Object>\n" + >+ "----------\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 100619
:
23614
| 23615