eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
156 stars 123 forks source link

external annotations translated to type annotation even if null annotations lack TYPE_USE target #2746

Open stephan-herrmann opened 1 month ago

stephan-herrmann commented 1 month ago

PR #2551 is about to change the expectation of org.eclipse.jdt.core.tests.model.ExternalAnnotations17Test.testBug565246(). The new expectation is wrong, revealing the following bug:

In a project >= 1.8 which has null annotations configured that are declaration annotations, evaluating external annotations will evaluate to annotations on types, rather than declaration annotations.