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

FMethod does not support varargs in declaration #54

Closed
Clashsoft opened this issue Aug 23, 2020 · 0 comments · Fixed by #55
Closed

FMethod does not support varargs in declaration #54

Clashsoft opened this issue Aug 23, 2020 · 0 comments · Fixed by #55
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Clashsoft
Copy link
Member

Example

Assuming mm is a ClassModelManager in a decorator.

Clazz foo = mm.haveClass("Foo");
mm.haveMethod(foo, "public void varargs(String... args)", "");

Expected Behaviour

It generates a class with the varargs method.

class Foo {
   public void varargs(String... args) {
   }
}

Actual Behaviour

The ... are removed:

class Foo {
   public void varargs(String args) {
   }
}
@Clashsoft Clashsoft added the bug Something isn't working label Aug 23, 2020
@Clashsoft Clashsoft added this to the v1.2.2 milestone Aug 23, 2020
@Clashsoft Clashsoft self-assigned this Aug 23, 2020
@Clashsoft Clashsoft linked a pull request Aug 24, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant