-
Notifications
You must be signed in to change notification settings - Fork 470
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
anewarray
behaves wierdly
#835
Comments
There is no verification check for the anewarray type, the correct syntax is We can add a verification error if that will resolve your issue |
@jumanji144 it is? I guess the second bit should be the following instead:
|
anewarray
doesn't handle invalid array types correctly on savinganewarray
behaves wierdly
huh, that is weird. I have never seen this behavior occur. I will adjust the code accordingly Thanks for the report! |
Fixed with 6aeec14 |
I can still reproduce this on my fork of Recaf. |
I have tested the code you provided and it successfully compiles back and reads back the same. I altered the behavior of anewarray to handle array descriptors now. Please provide a sample where the behavior is not as desired. |
I thought that |
|
Describe the bug
anewarray
doesn't handle invalid array types correctly on savingTo Reproduce
Steps to reproduce the behavior:
Add the following in a method:
Then save. There is no error, but afaik this is not allowed, since
anewarray
can only construct single dimensional arrays.Close and open the bytecode again.
It now says:
Now try:
It apears to save correctly in the ui.
Try to open the bytecode again, only to see that no bytecode is there.
There are stacktraces.
Exception
Stacktraces
Screenshots
If applicable, add screenshots to help explain your problem.
I am on the commit 6b86401.
The text was updated successfully, but these errors were encountered: