Community
Participate
Working Groups
I-20021016 linux-gtk: public class Moo { void foo(int a) { System.out.println(a); } void goo() { int n= 42; foo(n); int x= 7; // <-- } } 1. select foo in goo 2. inline method 3. press next 4. observe that the method invocation 'foo(n);' is replaced by 'int a= n; System.out.println(a);' This assignment is unnecessary und will go away if the following unrelated statement ('int x= 7;') is removed. I assume this is some sort of conservative strategy to avoid variable name clashes.
changed to enhancement since it's not a bug
Fixed in build > I20021218.