How about a light-bulb in this case ? ;-) It will be so nice to suggest a proper cast!
Regards, Armond > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:eap-features- > [EMAIL PROTECTED]] On Behalf Of Jonas Kvarnstr�m > Sent: Thursday, March 14, 2002 8:14 PM > To: [EMAIL PROTECTED] > Subject: [Eap-features] Suggestion for smarter cast completion > > Suppose I have two methods, get(String name) and get(int index). > > I write get(o) where o is an Object, and this is correctly marked as an > error. > > Now I want to cast o to String. I add a parenthesis, "get((|o)", and > press ctrl-shift-space. > > IDEA suggests int and String, since it only considers the context where > the resulting expression will be used. Maybe it could also consider the > object or primitive value that is being cast to something -- o is an > Object and cannot be cast to int. > > > > _______________________________________________ > Eap-features mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-features __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features
