Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Annotation on CtCatchVariable are attached to CtCatch instead #2934

Closed
nharrand opened this issue Apr 5, 2019 · 1 comment · Fixed by #2984
Closed

Bug: Annotation on CtCatchVariable are attached to CtCatch instead #2934

nharrand opened this issue Apr 5, 2019 · 1 comment · Fixed by #2984

Comments

@nharrand
Copy link
Collaborator

nharrand commented Apr 5, 2019

Example:

try {
       testStr.length();
} catch (@MyCatchAnnotation(something =  "annotation string") NullPointerException e) {
       e.printStackTrace();
}

Here CtCatch is annotated and not CtCatchVariable.

@monperrus
Copy link
Collaborator

monperrus commented Apr 7, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants