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

NPE when used with Pitest #131

Closed
8armed-monkey opened this issue Apr 24, 2017 · 3 comments
Closed

NPE when used with Pitest #131

8armed-monkey opened this issue Apr 24, 2017 · 3 comments

Comments

@8armed-monkey
Copy link

8armed-monkey commented Apr 24, 2017

The detail of the problem could be found here:
hcoles/pitest#345

A sample project where the issue occurs could be found here:
https://github.com/8armed-monkey/sample-npe-pitest-retrolambda

Class where the lambda is used:
test.event.EventBroadcasterImpl.java

The NPE 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).

@luontola
Copy link
Owner

The ticket hints that this may be related to missing source file debug information. Retrolambda persists the lambda classes that Java 8 generates at runtime, and those classes are missing debug information. It might be possible to add debug information at least for the source file name.

@luontola
Copy link
Owner

I wonder if #130 is related.

@luontola
Copy link
Owner

This has been fixed in Retrolambda 2.5.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