Summary: | [formatter] "Never join lines" does not work for annotations. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | egor s. kolesnikov <esk> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | LifarV, Olivier_Thomann, srikanth_sankaran | ||||
Version: | 3.5 | ||||||
Target Milestone: | 3.6 M6 | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Bug Depends on: | 282030 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
egor s. kolesnikov
2009-06-26 09:07:39 EDT
I believe this is due to the fact that there is no "alignment" for annotations. Created attachment 142504 [details]
Draft patch
First attempt to fix the problem. The proposed approach is minimalist (i.e. does not add any new preferences). It just creates a new alignment using the expressions in initializers preference value.
Using this patch the snippet would be formatted as follow:
@MessageDriven(mappedName = "filiality/SchedulerMQService",
activationConfig = {
@ActivationConfigProperty(propertyName = "cronTrigger",
propertyValue = "0/10 * * * * ?")
})
@RunAs("admin")
@ResourceAdapter("quartz-ra.rar")
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public class EventProcessingScheduledBean {
}
The question is: is this an acceptable behavior or do we think about adding new specific alignments for the annotations?
Olivier, what's your mind about this?
Comment on attachment 142504 [details] Draft patch The patch of bug 282030 will solve this issue... Fixed by bug 282030 patch released for 3.6M6... Verified for 3.6M6 using build I20100305-1011 |