gwtproject / gwt

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

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

Closed niloc132 closed 2 weeks ago

niloc132 commented 2 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 See #10021

niloc132 commented 2 weeks ago

This is not a regression, but does impact projects trying to use jsinterop-base 1.0.2+.