I just filed an issue "'Create method' intention does not take unboxing
into account" at http://www.jetbrains.net/jira/browse/IDEA-3043. The
issue is basically that IDEA will not suggest "int" for a method
parameter type, even when it would work because of autoboxing.
The issue was immediately marked "Won't fix." Eugene Vigdorchik said
"No, I think suggesting autoboxing from IDE is a bad idea; there are so
many pitfalls with it, we can hardly guarantee no change of semantics."
I think this is a silly decision - maybe IDEA shouldn't support
autoboxing at all, because of its pitfalls. Maybe IDEA should refuse to
compile code which uses java.util.Date because it doesn't support time
zones. I think these seem silly like not suggesting autoboxed parameter
types in "Create method" intention.
Also, what "change in semantics" is there? The "Create method" intention
is shown when I type a method that doesn't exist, and pass it whatever
parameters I want. Before I run "create method," there are no semantics.
What do you guys think? Personally I think this is a bug and it should