Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 477694 - [formatter] No space after closing angle bracket in class declaration
Summary: [formatter] No space after closing angle bracket in class declaration
Status: CLOSED DUPLICATE of bug 472205
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: 4.5.1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-17 07:08 EDT by Dirk Olmes CLA
Modified: 2015-09-18 17:35 EDT (History)
2 users (show)

See Also:


Attachments
Code formatter screenshot with the described option enabled. (52.62 KB, image/png)
2015-09-17 07:08 EDT, Dirk Olmes CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Olmes CLA 2015-09-17 07:08:16 EDT
Created attachment 256634 [details]
Code formatter screenshot with the described option enabled.

Formatting the class definition:

public class Test extends ArrayList<String> implements Runnable {
}

will strip the space between <String>implements

I have configured the source formatter to add a space after closing angle brackets in type parameters but this option seems to be ignored. When I flip the switch back and forth in the preferences, the code preview does not change, either.
Comment 1 Dirk Olmes CLA 2015-09-17 07:19:41 EDT
Happens on my colleague's Mac OS X, too. Same Eclipse version.
Comment 2 Reinhold Fuereder CLA 2015-09-18 09:34:27 EDT
Yes, this was also reported today by one of our devs and is always reproducible (with exactly same settings as reported by Dirk: "add a space after closing angle brackets in type parameters"; just for the record: on Linux and Windows):

public class DefaultVisitSessionFileWriter extends BaseSessionWriter<PurePathSessionInfo>implements VisitSessionFileWriter {
Comment 3 Mateusz Matela CLA 2015-09-18 17:35:42 EDT

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