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 18107 Details for
Bug 84496
[1.5][compiler] Capture Conversion not correctly implemented
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
New tests for patch
testpatch.txt (text/plain), 1.81 KB, created by
Tim Hanson
on 2005-02-18 14:04:21 EST
(
hide
)
Description:
New tests for patch
Filename:
MIME Type:
Creator:
Tim Hanson
Created:
2005-02-18 14:04:21 EST
Size:
1.81 KB
patch
obsolete
>Index: 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.196 >diff -u -r1.196 GenericTypeTest.java >--- GenericTypeTest.java 15 Feb 2005 10:27:21 -0000 1.196 >+++ GenericTypeTest.java 18 Feb 2005 18:59:43 -0000 >@@ -13562,4 +13562,44 @@ > }, > ""); > } >-} >\ No newline at end of file >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=84496 >+public void test501() { >+ this.runNegativeTest(new String[] { >+ "X.java", >+ "class X {" + >+ " public static void main(String[] args) {\n" + >+ " Foo<?> f1 = new Foo<Integer>();\n" + >+ " f1.bar = f1.bar;\n" + >+ " }\n" + >+ " }\n" + >+ "class Foo<T> {\n" + >+ " Bar<T> bar = new Bar<T>();\n" + >+ "}\n" + >+ "class Bar<T> {\n" + >+ " T t;\n" + >+ "}\n" >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 3)\n" + >+ "\tf1.bar = f1.bar;\n" + >+ "\t ^^^^^^\n" + >+ "Type mismatch: cannot convert from Bar<capture of ?> to Bar<capture of ?>\n" + >+ "----------\n"); >+} >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=84496 >+public void test502() { >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "import java.util.List;\n" + >+ "class X {\n" + >+ " void foo(List<? extends I1> l1) {\n" + >+ " C1 c1 = (C1)l1.get(0);\n" + >+ " }\n" + >+ "}\n" + >+ "interface I1{}\n" + >+ "class C1{}\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 84496
:
18084
| 18107 |
20088
|
20089
|
20118
|
20121
|
20124