-
Notifications
You must be signed in to change notification settings - Fork 34
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
fix gzoltar.cli ClassCastException in Java11 #41
Conversation
@jose FYI, @gynther-k is my student at KTH working on program repair. This PR enables us to run our repair tools on recent bugs. Thanks! |
com.gzoltar.cli/src/main/java/com/gzoltar/cli/commands/RunTestMethods.java
Show resolved
Hide resolved
Hi @gynther-k, First of all thanks for taking the time to improve GZoltar. I've just ran a quick example and your pull request do indeed address the issue reported, which I believe occurs when GZoltar is used under Java >= 9. I left a couple comments in your code and it would be great if could please address/comment them. -- |
I can confirm it works on Java 15 too 😄 Thank you @gynther-k |
Thank you for the comments on the code. The code was done in a hurry for my project. This looks nicer and I have tried it, I will update the PR 😄 |
just on a last note, despite it might not be an issue with this PR:
It seems however that just something with the paths is wrong so it doesn't find the instrumented files. |
@lapplislazuli
|
Thanks @lapplislazuli for checking whether the offline mode was working and thanks @gynther-k for the pull request.
I ran a few combinations of GZoltar and Java 8/12 and here are my findings. Online
Offline
Please do let me know if version a57904e does not work on your end. -- |
Thanks a lot @gynther-k and @jose! |
@jose would you be able to release this change on Maven Central? That would be super useful. Thanks! |
@monperrus, will do. ETA, end of the month. |
ack, thanks.
|
@monperrus, just to let you know that I've finally managed to find the time to release a new version of GZoltar (i.e., v1.7.3) on Maven Central Repository. |
thanks a lot @jose |
Context
When running gzoltar.cli with the latest version 51967a3 with:
with Java11 projects, i get the error:
Therefore I did this small modification to use it with my project. Do you think this is helpful to get gzoltar.cli to work with Java 11?
Check lists