[forge-issues] [JBoss JIRA] (ROASTER-78) Trying to get class value from AnnotationSource returns null. Only getLiteralValue returns value != null

George Gastaldi (JIRA) issues at jboss.org
Wed Aug 19 13:59:28 EDT 2015


    [ https://issues.jboss.org/browse/ROASTER-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099922#comment-13099922 ] 

George Gastaldi commented on ROASTER-78:
----------------------------------------

Hi Doychin,

I created a PR https://github.com/forge/roaster/pull/41 from my branch: https://github.com/gastaldi/roaster/tree/ROASTER-79

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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the forge-issues mailing list