gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.53k stars 377 forks source link

Ignore all annotations in all scopes if source is missing #10021

Closed niloc132 closed 2 weeks ago

niloc132 commented 3 weeks ago

JDT supports three kinds of annotations, and the ASTVisitor lets them be encountered in two different scopes. This patch ensures that all six cases are handled, and adds a test that uses each of the six cases - removing any one of the visit implementations will fail the test by incorrectly reporting the annotation as not having sources available.

Fixes #10020