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
ClassCastException: LineTouchPointDescriptor cannot be cast to JumpTouchPointDescriptor #40
Comments
.java and .class files to reproduce the issue with: http://filebin.ca/ndveXhpYQSw |
I had no issues with instrumenting the 2 binary files provided. I tried creating a simple test case with multiple static inner classes, but can't reproduce. We could always change the getCounterIdForJumpTrue and getCounterIdForJumpFalse methods to have an instanceof check to prevent a ClassCastException. public Integer getCounterIdForJumpTrue(int eventId) {
if (eventId2touchPointDescriptor.get(eventId) instanceof JumpTouchPointDescriptor) {
JumpTouchPointDescriptor jumpTouchPointDescriptor = (JumpTouchPointDescriptor) eventId2touchPointDescriptor
.get(eventId);
if (jumpTouchPointDescriptor != null) {
return jumpTouchPointDescriptor.getCounterIdForTrue();
}
}
return null;
} |
I got the same error with the 2.0.2 version and java 7. |
I also got the same error with java 7 and 2.0.1 version. What is estimated time for releasing 2.0.3 version.? |
I just merged in a fix for this issue, can you check out the latest code: |
sure, will let you know, thank you :) |
I am not seeing this issue anymore. thank you |
There are the same issue for :
|
I will make the same code changes to fix this also. Thanks for the heads up. |
I get the following ClassCastException with latest Cobertura git master on 4 files during instrumentation. All of them are static inner classes within interfaces, but this might be a coincidence.
The text was updated successfully, but these errors were encountered: