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 271267 - refactoring corrupts line endings
Summary: refactoring corrupts line endings
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: PC Windows 8.1
: P3 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-11 08:40 UTC by grechin.sergey
Modified: 2017-08-11 08:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description grechin.sergey 2017-08-11 08:40:09 UTC
Initial state:
====================
There is a file a.php wich references mehtos ->oldMethodName();
a.php has "windows-style line endings"

there is another file b.php that defines a class having this method oldMethodName().


Action
====================
when browsing b.php we decide to refactor and rename a method to newMethodName();
it correctly changes the code calling this method in a.php, 

Problem
====================
BUT!

when auto-saving the file with this change it converts its line endings into Unix-style which is not what anyone would expect.