Community
Participate
Working Groups
Declare statements appear with an extra "()" in the different AJDT views. For example, given the following declare statement: declare warning : execution(* *.*(..)) : "blah"; this appears as declare warning : "blah"() in the package explorer, outline view and xref view. The reason for this is that the JavaElementLabelProvider is used. It thinks the declare statement is a method and so adds the "()" (org.eclipse.jdt.ui.JavaElementLabels.getMethodLabel line 515).
Yes, the () doesn't make sense for declare statements. Same is true for ITD fields.
Fixed in: 1.4.1.200610041302 for Eclipse 3.2 (build.212) 1.5.0.200610050456 for Eclipse 3.3M2 (build.49)