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

[Issue] string.format java.lang.ArrayIndexOutOfBoundsException [1.12.2] #592

Open
deltanedas opened this issue May 26, 2019 · 0 comments
Open

Comments

@deltanedas
Copy link

Simple Lua code:
print(string.format("Test%d", "NotNumber"))
In Lua 5.3.3 console:
bad argument #2 to 'format' (number expected, got string)

However, in 1.80pr1, it results with:
java.lang.ArrayIndexOutOfBoundsException in red.

That shouldn't happen as I doubt any recursion is happening in string.format, as I've seen that is a reason for it to happen in another (fixed) issue.

Please fix up the LuaJ string.format to soft error rather than throw an exception.

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