Community
Participate
Working Groups
BETA_JAVA7 class C1 { } interface I1 { } class P extends C1 implements I1{ } public class X1<T1 extends C1 & I1> { private X1<P> f3; @SuppressWarnings("unchecked") <U extends C1 & I1> X1<U> getX() { return (X1<U>) f3; } X1<?> f2 = getX(); } 1) Invoke Inline... on getX() 2) Select either option (All or this invocation) , OK -> Replaces the method invocation with X1<?> f2 = (X1<? extends C1>) f3; => Should be X1<?> f2 = (X1<? extends C1 & I1>) f3; ?
No diamonds here..
See bug 99931.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.