[forge-issues] [JBoss JIRA] (ROASTER-116) Roaster - Issues with handling interfaces extending generic types

George Gastaldi (JIRA) issues at jboss.org
Sun Jan 8 20:45:00 EST 2017


     [ https://issues.jboss.org/browse/ROASTER-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Gastaldi closed ROASTER-116.
-----------------------------------
    Resolution: Done


> Roaster - Issues with handling interfaces extending generic types
> -----------------------------------------------------------------
>
>                 Key: ROASTER-116
>                 URL: https://issues.jboss.org/browse/ROASTER-116
>             Project: Roaster
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.19.4.Final
>            Reporter: Jagadeesh Jayavelu
>            Assignee: George Gastaldi
>             Fix For: 2.19.5.Final
>
>
> Roaster is not correctly reading the interfaces that extends with generic type
> //Interface definition
> import org.springframework.data.repository.CrudRepository;
> public interface AccountRespository extends CrudRepository<Account, Integer>
> {
> }
> //Parsing code
> JavaInterfaceSource javaInterface = Roaster.parse(JavaInterfaceSource.class, new File(file));
> javaInterface.getInterfaces();
> getInterfaces method is returning ["org.springframework.data.repository.CrudRepository"]
> Unable to get the generic types in declaration. In this case <Account,Integer>



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the forge-issues mailing list