| Summary: | Unconfigurable settings on Java formatter | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jorge Cara <jorgecara88> |
| Component: | Core | Assignee: | Mateusz Matela <mateusz.matela> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jarthana, mateusz.matela, Olivier_Thomann |
| Version: | 4.5.1 | ||
| Target Milestone: | 4.6 M3 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
This looks like a bug, not something that should be configurable. Please specify what version of jdt you are using. (In reply to Olivier Thomann from comment #1) > This looks like a bug, not something that should be configurable. Please > specify what version of jdt you are using. Eclipse Java Development Tools 3.11.1.v20150904-0015 org.eclipse.jdt.feature.group Eclipse.org Mateusz, is this something that we changed recently? Please comment on this. (In reply to Jay Arthanareeswaran from comment #3) > Mateusz, is this something that we changed recently? Please comment on this. If it is of any help this used to work on the Eclipse Luna we used before. We moved from Luna to Mars on the 5th of October (In reply to Jay Arthanareeswaran from comment #3) > Mateusz, is this something that we changed recently? Please comment on this. Not recently, it occurs in 4.5.0 too. *** This bug has been marked as a duplicate of bug 479819 *** Turns out it was fixed in M3 *** This bug has been marked as a duplicate of bug 471203 *** |
I can“t find any configurable option to avoid the insertion of a blankspace between two closing parenthesis for nested annotations: This code: @Entity @Table(name = "PERSON") public class Person implements Serializable { private static final long serialVersionUID = -5902684694675966307L; @Column(name = "NAME", nullable = false) private String name; @Embedded @AttributeOverrides({ @AttributeOverride(name = "city", column = @Column(name = "CITY", nullable = false)), @AttributeOverride(name = "country", column = @Column(name = "COUNTRY", nullable = true)), @AttributeOverride(name = "houseNo", column = @Column(name = "HOUSE_NO", nullable = true)), @AttributeOverride(name = "street", column = @Column(name = "STREET", nullable = true)), @AttributeOverride(name = "zipCode", column = @Column(name = "ZIP_CODE", nullable = true))}) private Address address; } Gets formatted like: @Entity @Table(name = "PERSON") public class Person implements Serializable { private static final long serialVersionUID = -5902684694675966307L; @Column(name = "NAME", nullable = false) private String name; @Embedded @AttributeOverrides({ @AttributeOverride(name = "city", column = @Column(name = "CITY", nullable = false) ), @AttributeOverride(name = "country", column = @Column(name = "COUNTRY", nullable = true) ), @AttributeOverride(name = "houseNo", column = @Column(name = "HOUSE_NO", nullable = true) ), @AttributeOverride(name = "street", column = @Column(name = "STREET", nullable = true) ), @AttributeOverride(name = "zipCode", column = @Column(name = "ZIP_CODE", nullable = true) ) }) private Address address; }