Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 477694

Summary: [formatter] No space after closing angle bracket in class declaration
Product: [Eclipse Project] JDT Reporter: Dirk Olmes <dirk.olmes>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mateusz.matela, reinhold.fuereder
Version: 4.5   
Target Milestone: 4.5.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Code formatter screenshot with the described option enabled. none

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 ***