As a follow up to 332b25b680, this commit consistently avoids the use of reflection for annotation attribute method invocations. See gh-29301 Closes gh-29448
332b25b680