Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify creating constructors #65

Open
metacosm opened this issue Dec 18, 2020 · 3 comments · May be fixed by #69
Open

Simplify creating constructors #65

metacosm opened this issue Dec 18, 2020 · 3 comments · May be fixed by #69

Comments

@metacosm
Copy link

The syntax is quite arcane and is difficult to get right, in particular when needing to call super constructors.

@gsmet
Copy link
Member

gsmet commented Dec 18, 2020

I think we need some general infrastructure to easily generate proxy methods, be it constructors or regular methods.

@dufoli
Copy link
Contributor

dufoli commented Dec 19, 2020

hmm, I have seen the message on zulip and Thinking to implement few stuff. Indeed I face same issue with cxf ;-)
wdyt about adding in ClassCreator:


    public MethodCreator getConstructor(String... parameters) {
        return getMethodCreator(MethodDescriptor.ofConstructor(className, parameters));
    }

    public MethodCreator getSuperConstructor(String... parameters) {
        return getMethodCreator(MethodDescriptor.ofConstructor(superClass, parameters));
    }

@dufoli
Copy link
Contributor

dufoli commented Dec 20, 2020

I implement a part in #69 and another in #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants