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

Inconsistent stackmap frames errors #34

Open
brandonio21 opened this issue Feb 27, 2014 · 0 comments
Open

Inconsistent stackmap frames errors #34

brandonio21 opened this issue Feb 27, 2014 · 0 comments

Comments

@brandonio21
Copy link

I love ArnoldC and have been experimenting with it for a bit, but I have come across several scenarios where I have tried to run my program and got lengthy errors regarding inconsistent stackmap frames.

For example,
Exception in thread "main" java.lang.VerifyError: Inconsistent stackmap frames at branch target 75
Exception Details:
Location:
lfib.main([Ljava/lang/String;)V @75: return
Reason:
Type top (current frame, locals[5]) is not assignable to integer (stack map, locals[5])
Current Frame:
bci: @23
flags: { }
locals: { integer, integer, integer, integer, integer }
stack: { integer }
Stackmap Frame:
bci: @75
flags: { }
locals: { integer, integer, integer, integer, integer, integer }
stack: { }
Bytecode:
0000000: 1100 193b 1100 003c 1100 003d 1100 013e
0000010: 1100 0136 0415 0499 0034 1100 0036 051c
0000020: 1d60 3605 b200 1115 05b6 0017 1d3d 1505
0000030: 3e1b 3c1a 1ba3 0007 03a7 0007 04a7 0003
0000040: 3604 1b11 0001 603c a7ff cdb1
Stackmap Table:
full_frame(@21,{Integer,Integer,Integer,Integer,Integer},{})
full_frame(@60,{Integer,Integer,Integer,Integer,Integer,Integer},{})
same_locals_1_stack_item_frame(@64,Integer)
same_frame(@75)

at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)

Code causing this error: https://gist.github.com/brandonio21/be36c230748e6d530027#file-lfib25

KahCosta pushed a commit to KahCosta/ArnoldC that referenced this issue Oct 25, 2018
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