Skip to content

jooby-apt: compilation error while using generics on controller #3476

@jknack

Description

@jknack
 @GET("/some")
  public <T> List<T> doSomething() {
    return ...;
  }

Generates:

public java.util.List<T> doSomething(io.jooby.Context ctx) {
}
Compilation failure
[ERROR]../Controller_.java:[128,57] cannot find symbol
[ERROR]   symbol:   class T
[ERROR]   location: class mypackage.Controller_
[ERROR] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions