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

Bug 254704

Summary: [typing][5.0] Wrong auto completion for '{' inside annotation
Product: [Eclipse Project] JDT Reporter: Sergey Elin <elinsn>
Component: TextAssignee: Noopur Gupta <noopur_gupta>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, david_audel, mario.fts, markus.kell.r, philippe_mulet
Version: 3.4.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: fix candidate

Description Sergey Elin CLA 2008-11-10 02:57:00 EST
How to reproduce:
1. Create new class
2. Add any annotation container (@NamedQueries for example)
3. Type '{' inside '()' and hit Enter.

Here is the result:
@Entity
@Table(name = "IPRC_PRICE_GROUP")
@NamedQueries({
	)
}
public class PriceGroup extends AbstractEntity<PriceGroup> {

}
Comment 1 David Audel CLA 2009-06-30 04:10:29 EDT
Reproduced in 3.5.

Automatic addition of closing braces is done by JDT/UI.
Move to JDT/UI
Comment 2 Mario Goncalves CLA 2012-11-17 08:31:03 EST
*** Bug 394467 has been marked as a duplicate of this bug. ***
Comment 3 Noopur Gupta CLA 2013-02-15 02:56:12 EST

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