Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349880 - [inline][refactoring] Inline method does not work with intersection types
Summary: [inline][refactoring] Inline method does not work with intersection types
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on: 99931
Blocks:
  Show dependency tree
 
Reported: 2011-06-20 17:54 EDT by Raksha Vasisht CLA
Modified: 2020-05-01 20:29 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raksha Vasisht CLA 2011-06-20 17:54:46 EDT
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; ?
Comment 1 Deepak Azad CLA 2011-06-21 04:51:47 EDT
No diamonds here..
Comment 2 Deepak Azad CLA 2011-06-21 05:29:31 EDT
See bug 99931.
Comment 3 Eclipse Genie CLA 2020-05-01 20:29:29 EDT
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.