Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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

Copy link
Copy link
@gnuhel

Description

@gnuhel
Issue body actions

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_);

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.