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

Broken array literal initialization #30

Open
tmagrino opened this issue Oct 30, 2018 · 1 comment
Open

Broken array literal initialization #30

tmagrino opened this issue Oct 30, 2018 · 1 comment

Comments

@tmagrino
Copy link
Member

Currently the following will not compile to valid Java code from FabIL:

public class Test {
  public void foo() {
    int[] foobar = {1, 2, 3};
  }
}

The array declaration and initializer will be compiled into the following line of Java:
fabric.lang.arrays.intArray foobar = fabric.lang.WrappedJavaInlineable.$wrap({1, 2, 3}); which is invalid Java code.

@tmagrino
Copy link
Member Author

Credit to @karannewatia for notifying me of this bug.

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

No branches or pull requests

1 participant