Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 85449

Summary: [inline] Inline Method produces illegal code for autoboxed parameters
Product: [Eclipse Project] JDT Reporter: Tom Hofmann <eclipse>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: deepakazad, markus.kell.r
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Tom Hofmann CLA 2005-02-16 11:36:55 EST
I20050215-2300 (m5 test pass)

Inline foo in this code:

public class InlineAutoboxed {
	int foo(Integer i) {
		return i.intValue();
	}
	
	int bar() {
		return foo(42);
	}
}

-->

public class InlineAutoboxed {
	int bar() {
		return 42.intValue();
	}
}
Comment 1 Tom Hofmann CLA 2005-02-16 11:42:37 EST
same for inline constant
Comment 2 Dirk Baeumer CLA 2005-03-24 12:22:44 EST
This bug can highly benefit from bug 87173. Postponing until M7.
Comment 3 Dirk Baeumer CLA 2005-05-11 14:03:36 EDT
Did not make it into M7
Comment 4 Dirk Baeumer CLA 2005-05-25 13:15:44 EDT
Deferring post 3.1
Comment 5 Markus Keller CLA 2010-01-18 10:12:27 EST
Need to use ASTNodes#needsExplicitCast(ITypeBinding, ITypeBinding), like Inline Constant and Inline Local Variable.
Comment 6 Deepak Azad CLA 2010-06-25 15:52:23 EDT

*** This bug has been marked as a duplicate of bug 267386 ***