[MAGNOLIA-5544] AnnotationUtils#hasAnnotationOn should not choke on TypeParameter when looking for annotations Created: 12/Dec/13  Updated: 17/Dec/13  Resolved: 12/Dec/13

Status: Closed
Project: Magnolia
Component/s: i18n
Affects Version/s: None
Fix Version/s: 5.2.1

Type: Bug Priority: Neutral
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: java8
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Java 8


Issue Links:
Relates
relates to MAGNOLIA-5535 Enable to run with Java 8 Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Java 8 supports annotations on TypeParameter - so when trying to lookup all annotations on an object, AnnotationUtils chokes on this (because it was originally written to strictly only process Class and Method annotations)



 Comments   
Comment by Magnolia International [ 12/Dec/13 ]

AnnotationUtils#hasAnnotationOn should not choke on TypeParameter now simply ignores TypeParameters when looking for annotations.

Generated at Mon Feb 12 04:06:08 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.