-
Notifications
You must be signed in to change notification settings - Fork 354
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
NPE with retrolambda #345
Comments
I'm guessing that Kotlin is now not including source file debug information in one or more classes. Although it will be easy enough to fix the NPE here this might cause other problems as pitest relies on this debug info to generate the final report. If you can put together a minimal example that reproduces the problem I can take a look. |
Ah, the thing is my project doesn't contain any Kotlin source code. I am using Java only. |
Don't quite follow how/why you are upgrading kotlin if you are not using it. If you can put together a minimal example that reproduces the problem I can take a look. |
I am using Kotlin for other projects but not this particular one. I'll try to setup a minimum example later and let you know. |
Hi, it looks like it might be caused by Retrolambda. The sample project is available here: |
Thanks @8armed-monkey for SSCCE. It helped me to reproduce the issue. First, I was suspecting that Kotlin is somehow leaking into the classpath use but PIT, but it's not the case:
Later on, I realized that you mentioned that the problem occur even in projects which don't use Kotlin (like that one :) ). The NPE is in the line:
which suggests that a filename is null. I debugged that and the ill-fated object is:
The filename is null, but it shouldn't. The problem may be related to retrolamba. @8armed-monkey Could you check if the problem occurs also without retrolambda? If not, could you try to use the latest version of retrolambda (2.5.1) to verify that the problem hasn't been already fixed? If not, it would be good to report it :). @hcoles Maybe it would be good to perform a sanity check of (some) input parameters when Btw, just in case, as it may not be documented (yet), to debug PIT in a Gradle build it is enough to set:
|
@szpak The problem doesn't occur if I change the lambda / method reference to anonymous inner classes (the Retrolambda plugin is still being used, but it doesn't create additional classes). I updated the Retrolambda plugin as well, but the problem is still there. Will report the issue to Retrolambda devs. |
This has been fixed in Retrolambda 2.5.3 |
Hi I am getting the following exception after upgrading to Kotlin v1.1:
I am running it with Gradle:
./gradlew clean pitest
The text was updated successfully, but these errors were encountered: