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 - Saving a Java source file should not change line endings
Summary: Saving a Java source file should not change line endings
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-18 09:08 UTC by terje7601
Modified: 2016-02-18 09:08 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 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)