Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Code generation for Generic Type wrong #1402

@gnuhel

Description

@gnuhel

I have this annotated class

@EBean(scope = EBean.Scope.Singleton)
public class HrWebServiceTask<T> extends Task<HrRequest, HrResponse<T>> {

    @RestService
    HrRestClient<T> restClient;

    @Override
    protected HrResponse<T> run(HrRequest request) throws Exception {
        return restClient.doRequest(request);
    }
}

and it generates following code

private void init_() { restClient = new HrRestClient<T>_(context_); rootContext = context_; createTaskRegistry(); }

I get a compiler error for the code at restClient = new HrRestClient<T>_(context_);
Shouldn't it be

restClient = new HrRestClient_<T>(context_);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions