This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 74068

Summary: @@ in annotation
Product: contrib Reporter: Pavel Flaska <pflaska>
Component: JackpotAssignee: _ tball <tball>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Suggested patch

Description Pavel Flaska 2006-03-28 09:08:00 UTC
When I tried to add local varible with annotation, @ character is doubled.
Comment 1 Pavel Flaska 2006-03-28 09:21:45 UTC
The first @ character is printed by VeryPretty.printAnnotations() and second is
printed by VeryPretty.visitAnnotation(). It seems to me it is enough to remove
line which prints @ in printAnnotations.

at org.netbeans.jackpot.pretty.VeryPretty.*visitAnnotation*(VeryPretty.java:1484)
at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:1774)
at org.netbeans.jackpot.pretty.VeryPretty.printExpr(VeryPretty.java:286)
at org.netbeans.jackpot.pretty.VeryPretty.printNoParenExpr(VeryPretty.java:302)
at org.netbeans.jackpot.pretty.VeryPretty.*printAnnotations*(VeryPretty.java:462)
Comment 2 Pavel Flaska 2006-03-28 09:25:19 UTC
Created attachment 29440 [details]
Suggested patch
Comment 3 _ tball 2006-04-05 22:18:27 UTC
Applied patch.  Thanks for the fix!
Comment 4 Pavel Flaska 2006-04-06 15:49:52 UTC
Fixed.
Comment 5 Pavel Flaska 2006-04-06 15:50:11 UTC
v.