This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 95867 - "Rename" refactoring of JRuby files does not change comment
Summary: "Rename" refactoring of JRuby files does not change comment
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-17 10:27 UTC by aharmellaw
Modified: 2011-01-28 20:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aharmellaw 2007-02-17 10:27:38 UTC
When I renamed a JRuby file using the "rename" utility from the right click menu
the file was renamed but the comment at the top of the file was not.  It would
be nice if this worked in the same way as Java refectoring with the option being
given to "apply to comments".
Comment 1 Torbjorn Norbye 2007-06-19 20:40:13 UTC
Rename refactoring is implemented for Ruby now, but unlike Java, Ruby classes do not have any specific filename requirements (in Java they are 1-1), so 
refactoring does not affect file names or vice versa.  Arguably if the filename reflects the class in some way (such as FooController in foo_controller.rb) it could 
offer to rename the file, and in those cases renaming the file could also offer to refactor the class.
Comment 2 Jiri Kovalsky 2007-07-03 14:10:39 UTC
Reassigning this issue to newly created 'ruby' component.