Project: JDT
Bug 10751 inline local variable with cast results in compile time error
Reported: 2002-03-05 07:11:27 | Status: resolved fixed

Having the code Object object = new Integer(2); Integer integer = (Integer) object; int i = integer.intValue(); and inlining "integer" results in Object object = new Integer(2); int i = (Integer) object.intValue(); which gives a compile time error. Expected result would be Object object = new Integer(2); int i = ((Integer) object).intValue();

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineTempRefactoring.java