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

Summary: refactoring corrupts line endings
Product: php Reporter: grechin.sergey
Component: RefactoringAssignee: issues@php <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 8.1   
Issue Type: DEFECT Exception Reporter:

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.