Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 474215 - [formatter] Unicode character in comment deletes following line break
Summary: [formatter] Unicode character in comment deletes following line break
Status: CLOSED DUPLICATE of bug 471090
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.5.1   Edit
Assignee: Mateusz Matela CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-04 05:58 EDT by Friederike Jolk CLA
Modified: 2015-08-17 15:57 EDT (History)
1 user (show)

See Also:


Attachments
small Java code example (193 bytes, text/plain)
2015-08-04 05:58 EDT, Friederike Jolk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Friederike Jolk CLA 2015-08-04 05:58:15 EDT
Created attachment 255613 [details]
small Java code example

When a comment contains a Unicode character (e.g. in a commented code line printing German strings with umlauts), formatting the source code results in the deletion of the following line break - which is rather unfortunate, if the following line happens to be an (uncommented) code line.
(A following empty line prevents the line break deletion after the comment.)

Formatting the attached Java file results in this new comment line:
// comment with unicode character \u1234 int j = 0;
Comment 1 Mateusz Matela CLA 2015-08-17 15:57:26 EDT

*** This bug has been marked as a duplicate of bug 471090 ***