Community
Participate
Working Groups
Version: 3.1.0 Build id: I20050527-1300 (RC1) Steps to reproduce (example for int[]): 1.) Have a class like that: public class Main { public void loadSashWeights() { Hashtable hash = new Hashtable(); hash.put("Foo", new int[] { 3 }); } } 2.) Run Refactor > Infer Generic Type Arguments Actual Results: The first line of the Method is changed to Hashtable<String, I[]> hash = new Hashtable<String, I[]>(); Expected Results: The first line of the Method is changed to Hashtable<String, int[]> hash = new Hashtable<String, int[]>(); Regards, Ben
Markus, can you please comment: - do you suggest to fix ? - how risky ?
Works for me in N20050609-0010. In RC1, there was a problem restoring primitive type bindings from keys, which probably caused this.
Verified using I20050610-0010