-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Java 8: Failure with default methods in interfaces #201
Comments
@stevenschlansker Thanks for reporting this! JaCoCo 0.7.0 is based on ASM5 and is supposed to support Java 8. However, the instrumenter assumes that a interface does contain at most one method () which does not hold true for Java 8 interfaces with default methods. Therefore a wrong probe array length is calculated which results in the ArrayIndexOutOfBoundsException you encountered. I will see how we can fix this for Java 8. |
Awesome. In case it is helpful, here is the interface I am having trouble with:
|
@marchof in any case seems that we must upgrade to ASM 5.0.1 - see http://mail.ow2.org/wws/arc/asm/2014-03/msg00034.html |
@Godin Fortunately only issue 317127 seems to affect us. Anyways, I upgraded to 5.0.1. |
When should we expect a release with a fix? |
I found a solution for the problem. Need to cleanup the code and add more tests. The release should be available within 1-2 weeks. |
Jacoco can fail on Java 8 classes, in this particular case one with a default method implementation on an interface:
asm
does not support Java 8 until 5.0.1, additionally maybe Jacoco itself needs some fixups for Java 8.The text was updated successfully, but these errors were encountered: