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 - @@ in annotation
Summary: @@ in annotation
Status: VERIFIED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tball
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 09:08 UTC by Pavel Flaska
Modified: 2006-04-06 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suggested patch (710 bytes, text/plain)
2006-03-28 09:25 UTC, Pavel Flaska
Details

Note You need to log in before you can comment on or make changes to this bug.
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.