Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

wrong lineNumber in DetailAST for class with annotation #54

Closed
romani opened this Issue · 2 comments

2 participants

@romani
Owner

Code:
Created: 2009-07-14
Creator: superbonbon
SF issue: 581

package src;

@SomeTestAnnotations({ @SomeTestAnnotation(key = "foo"),
        @SomeTestAnnotation(key = "bar") })
/* {@inheritDoc} */
public class MyGenericClassBad {
}

Picture of DetailAST:
screenshotast

detected: lineNumber=3.
expected: lineNumber for class have to be real - 6,

@isopov
Owner

Why on screenshot the line is correct 6?

@romani
Owner

Hmm, you are right, class IDENT in line 6, Looks like annotation is treated as part of Class definition - that is true.
So other have to keep this in mind.

Issue is closed, not a bug.

@romani romani closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.