Adding cast automatically may hide a semantic error which is undesirable. IDEA should assist in programming, not program instead the developer.
Best regards, Eugene Zhuravlev IntelliJ Software, http://www.intellij.com/ "Develop with pleasure!" ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 15 November, 2001 3:55 PM Subject: [Eap-list] 516 bug: change return type > > public String myMethod() { return "myString"; } > String x = myMethod(); > > -> > > public Object myMethod() { return new Object(); } > String x = (String) myMethod(); > -------- > > myMethod returns Object after 'change signature' > and calls assigning to String then require a cast. > > > >The behaviour is correct. "Find - Refactoring preview" window displays not > >all found usages, but the usages to be changed (see the corresponding header > >in the tree). In this case there are no usages that are to be changed. > > >> build 516, NT4, JDK1.3.1 > >> > >> refactor - change method signature: > >> I changed return type from String to Object > >> and IDEA found no references to change, > >> although the method was public and it was used in several > >> other classes (within project path and within source-path) > >> -> the refactoring lead to compiler error > > ________________________________________________________________ > Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! > Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13 > > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
