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 258046

Summary: Saving a Java source file should not change line endings
Product: java Reporter: terje7601
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description terje7601 2016-02-18 09:08:09 UTC
To reproduce: open a Java source file with UNIX line endings, make a simple change, and save the file.
Now the source file has Windows line endings.

I've tried with a couple of other file types (e.g. .html and .sql), and those work as expected and don't change the line endings upon saving.

Product Version: NetBeans IDE Dev (Build 201602090002)
Updates: Updates available
Java: 1.8.0_74; Java HotSpot(TM) 64-Bit Server VM 25.74-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_74-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)