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 182291 Details for
Bug 284296
[1.5][compiler] Invalid 'Incompatible conditional operand types' error on instanceof
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 test
patch.txt (text/plain), 1.50 KB, created by
Srikanth Sankaran
on 2010-11-03 09:04:17 EDT
(
hide
)
Description:
junit test
Filename:
MIME Type:
Creator:
Srikanth Sankaran
Created:
2010-11-03 09:04:17 EDT
Size:
1.50 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest.java,v >retrieving revision 1.2 >diff -u -r1.2 GenericsRegressionTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest.java 25 Oct 2010 08:49:56 -0000 1.2 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest.java 3 Nov 2010 13:03:52 -0000 >@@ -514,4 +514,21 @@ > "Bound mismatch: The type U is not a valid substitute for the bounded parameter <T extends Number> of the type Test<T>\n" + > "----------\n"); > } >+// https://bugs.eclipse.org/bugs/show_bug.cgi?id=284296 >+public void test284296() { >+ this.runConformTest( >+ new String[] { >+ "Test.java", >+ "public class Test {\n" + >+ " public static void main(String[] args) {\n" + >+ " List<List<Integer>> list = new ListList<Integer>();\n" + >+ " System.out.println(list instanceof ListList<?>);\n" + >+ " }\n" + >+ "}\n" + >+ "interface List<T> {}\n" + >+ "class ArrayList<T> implements List<T> {}\n" + >+ "class ListList<T> extends ArrayList<List<T>> {}\n" >+ }, >+ "true"); >+} > } >\ 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 284296
: 182291