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

Error: java.lang.reflect.InvocationTargetException in .class files #55

Closed
shannah opened this issue May 14, 2015 · 6 comments
Closed

Error: java.lang.reflect.InvocationTargetException in .class files #55

shannah opened this issue May 14, 2015 · 6 comments

Comments

@shannah
Copy link

shannah commented May 14, 2015

After converting some .class files with retrolambda, the resulting .class files seem to have some problems. If I run javap -verbose OutputClass.class I see the following type of output at the end of some (but not all) method definitions.

Error: java.lang.reflect.InvocationTargetException
        StackMap: length = 0x3
         00 01 0F 

I can't seem to identify anything special about the methods where this is happening. Any idea what would cause this?

@luontola
Copy link
Owner

Please give a complete example for reproducing this.

@shannah
Copy link
Author

shannah commented May 14, 2015

Here is a more complete test to demonstrate the issue.
https://github.com/shannah/retrolambda_issue_55

@luontola
Copy link
Owner

luontola commented Jun 7, 2015

Thanks. This seems to be something like Retrolambda generating stack map frames even though the target bytecode is Java 5, which doesn't have them.

@shannah
Copy link
Author

shannah commented Jun 7, 2015

Thanks for looking at this. Is there an easy way to strip these out? They are making some other tools choke on the .class files later on down the line.

@luontola
Copy link
Owner

luontola commented Jun 7, 2015

I made a fix for it. I'll release it later today.

@luontola
Copy link
Owner

luontola commented Jun 7, 2015

This has been fixed in Retrolambda 2.0.3

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

2 participants