Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Refactoring/Rename    [ Add a report in this area ]  
Report #:  102971   Status: Need Feedback
Cannot rename a new method
Project:  Delphi Build #:  16.0.4358.45540
Version:    16.3 Submitted By:   Curt Mayers
Report Type:  Basic functionality failure Date Reported:  1/28/2012 10:35:06 AM
Severity:    Infrequently encountered problem Last Updated: 1/28/2012 6:51:44 PM
Platform:    All versions Internal Tracking #:  
Resolution: Need More Info (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
If, when designing a class or form, a new method is created, and then instantly renamed (via the refactor-->rename dialog), the method disappears.

See the screen shot sequence for better explanation:

Steps to Reproduce:
These steps correspond to the screenshots in the attachments:

1.  Double click on a component event to create an event handler.
2.  Here's the new event handler with the default name
3.  Here's the handler template created by Delphi
4.  Highlight the handler name, and use the right-click menu to use the "Refactor-->Rename method dialog"
5.  Boom!  The method disappears.

Workarounds
Before invoking the "Refactor-->Rename method" dialog, but a line comment inside the body of the method (e.g. "// ")
Attachment
102971.zip
Comments

Tomohiro Takahashi at 1/28/2012 6:52:36 PM -
> 1.  Double click on a component event to create an event handler.
Does your issue occur with any component and any event handler, for example a TButton and its OnClick event hanlder?

and, is this a regression in XE2? What about previous version of Delphi?

Server Response from: ETNACODE01