Skip to content
This repository was archived by the owner on May 10, 2019. It is now read-only.

Erro compilação usando @Stateless e generics #41

Open
roneigebert opened this issue Aug 17, 2016 · 4 comments
Open

Erro compilação usando @Stateless e generics #41

roneigebert opened this issue Aug 17, 2016 · 4 comments

Comments

@roneigebert
Copy link
Member

Tenho a classe:

package com.test;

@trip.spi.Stateless
public class StatelessTest {

    protected <T> Iterable<T> generic( Class<T> clazz ) {
        return null;
    }

}

E ela gera erro de compilação:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3:compile (default-compile) on project ttm-cobol-maven-plugin: Compilation failure: Compilation failure:
[ERROR] \Projetos\ttm-server\ttm-cobol\ttm-cobol-maven-plugin\target\generated-sources\annotations\com\test\StatelessTestStateless2463568548.java:[10,55] error: cannot find symbol
[ERROR]
[ERROR] \Projetos\ttm-server\ttm-cobol\ttm-cobol-maven-plugin\target\generated-sources\annotations\com\test\StatelessTestStateless2463568548.java:[10,27] error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]

Verifiquei e o metodo da classe StatelessTestStateless2463568548 ficou:

public java.lang.Iterable<T> generic( java.lang.Class<T> arg0 ) {

onde o correto seria:

public <T> java.lang.Iterable<T> generic( java.lang.Class<T> arg0 ) {
@miere
Copy link

miere commented Aug 17, 2016

Buenas Ronei.
Simulei aqui e isso acontece inclusive na ultima versão. Vou aplicar um patch!

miere added a commit that referenced this issue Aug 17, 2016
@miere
Copy link

miere commented Aug 17, 2016

Apliquei um patch, man! Faz um build no trip e faz um teste para ver se funcionou corretamente no seu ambiente tbm!

Vou liberar uma versão amanhã!

@roneigebert
Copy link
Member Author

roneigebert commented Aug 17, 2016

Funcionou! quando tiver a nova versão acho interessante também atualizar a dependencia no projeto https://github.com/Skullabs/uWorkers/ (para nao provocar problemas de dependencia para quem usa uWorkers e o tRip)

@miere
Copy link

miere commented Aug 18, 2016

Show... Vou atualizar os dois! =)

On Wed, Aug 17, 2016 at 6:15 PM Ronei [email protected] wrote:

Funcinou! quando tiver a nova versão acho interessante também atualizar a
dependencia no projeto https://github.com/Skullabs/uWorkers/ (para nao
provocar problemas de dependencia para quem usa uWorkers e o tRip)


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#41 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAf20PoziHbVBvUkUbcsrIVXRW2gTeuLks5qg3oNgaJpZM4JmfP7
.

Miere Teixeira

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants