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 26827 Details for
Bug 108783
[1.5][compiler] Runnable masks Iterable interface in bounds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Test case
org.eclipse.jdt.core.tests.compiler_02.txt (text/plain), 1.55 KB, created by
Maxime Daniel
on 2005-09-05 06:38:59 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Maxime Daniel
Created:
2005-09-05 06:38:59 EDT
Size:
1.55 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.320.2.28 >diff -u -r1.320.2.28 GenericTypeTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 5 Sep 2005 10:34:32 -0000 1.320.2.28 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 5 Sep 2005 10:37:55 -0000 >@@ -23522,5 +23522,34 @@ > }, > ""); > } >+// Runnable masks Iterable in multiple bounds >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=108783 >+public void test812() { >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.util.Arrays;\n" + >+ "import java.util.Iterator;\n" + >+ "import java.util.List;\n" + >+ "\n" + >+ "public class X implements Iterable<String>, Runnable {\n" + >+ " public <T extends Runnable & Iterable<String>> void foo(T t) {\n" + >+ " for (String s : t)\n" + >+ " System.out.println(s);\n" + >+ " }\n" + >+ " public void run() { /* */ }\n" + >+ " private List<String> list = Arrays.asList(new String[] { \"a\", \"b\" });\n" + >+ " public Iterator<String> iterator() {\n" + >+ " return this.list.iterator();\n" + >+ " }\n" + >+ " public static void main(String... args) {\n" + >+ " X x = new X();\n" + >+ " x.foo(x);\n" + >+ " }\n" + >+ "}" >+ }, >+ "a\n" + >+ "b"); >+} > } >
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 108783
: 26827