I see problems with both the current code and your proposed fix. The current code fails for the declaration below, because it will try to assign a HashMap to a Hashtable. Hashtable keyCodes;
The proposed fix actually makes things worse because the following declaration is the common case. Class.newInstance() fails for interfaces. Map keyCodes; The definitive solution should address both scenarios. I'll reopen the issue and add this comment. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159378#4159378 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159378 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
