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 252143 Details for
Bug 463825
Eclipse allows implicit conversion from T<U> to T<? extends U<?>> in method invocation context
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.
I expect that eclipse should report an error in both functions
Test2.java (text/plain), 647 bytes, created by
Benjamin Horstman
on 2015-04-02 11:30:08 EDT
(
hide
)
Description:
I expect that eclipse should report an error in both functions
Filename:
MIME Type:
Creator:
Benjamin Horstman
Created:
2015-04-02 11:30:08 EDT
Size:
647 bytes
patch
obsolete
>import java.util.ArrayList; >import java.util.List; > >public class Test2 { > public List<GenericClass<?>> failsInJavac() { > Iterable<GenericClass> set = null; > return newArrayList(set); > } > public List<GenericClass<?>> failsInBoth() { > Iterable<GenericClass> set = null; > List<GenericClass<?>> rv = set; //compile error in both > return rv; > } > > //signature of guava's com.google.common.collect.Lists.newArrayList > public static <E> ArrayList<E> newArrayList(Iterable<? extends E> elements) { > return null; //intentionally blank as implementation doesn't affect bug > } > > public static class GenericClass<T> { > T t; > } >}
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 Raw
Actions:
View
Attachments on
bug 463825
: 252143