]
George Gastaldi commented on ROASTER-78:
----------------------------------------
Hi Doychin,
I created a PR
Could you build it locally and see if getLiteralValue returns the correct FQN for you?
Thanks
Trying to get class value from AnnotationSource returns null. Only
getLiteralValue returns value != null
--------------------------------------------------------------------------------------------------------
Key: ROASTER-78
URL:
https://issues.jboss.org/browse/ROASTER-78
Project: Roaster
Issue Type: Bug
Components: API
Affects Versions: 2.15.0.Final
Environment: Windows, forge 2.17.1
Reporter: Doychin Bondzhev
Priority: Blocker
Fix For: 2.x Future
If I want to get the class value for annotation that I get like this:
AnnotationSource<JavaClassSource> idClassAnotation = entityClass
.getAnnotation(IdClass.class);
I can only get it from getLiteralValue method and it returns the simple name of the class
+ .class
All other methods produce null