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
#2522: mockito-inline & Groovy NullPointerException #2566
#2522: mockito-inline & Groovy NullPointerException #2566
Conversation
…to-inline and Groovy
Thanks, I'll see what we can do about this! |
I do not get an error when running this test, it passes. You can extract the class files using |
Per #2522 (comment) I think we need to update this PR to include 81bc5bd, would we not? That said, we do need the regression test to fail without any modifications and then it would need to pass with the fix. Otherwise, it is not catching the correct error. Lastly, @stevegreenn can you run |
@stevegreenn Could you rebase your PR on my change and see if the test is still failing? |
@nick-ernie confirmed in #2522 (comment) that 61279b2 should fix the issue. @stevegreenn can you incorporate the above commit or would you prefer us to take in your PR and get it ready-for-merge? |
Thanks for the further work on this guys! I'll get this PR updated later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix, thanks for bearing with us!
@stevegreenn Seems like there was a compilation failure on the commit. Can you check it out and verify that |
Looks like there is indeed a compilation error. From a quick glance, it looks like this is the problem: The method definition (found here) requires a boolean parameter, which isn't being provided in the above snippet. @raphw - can you take a look please? I'm on holiday at the minute but if it's as simple as adding true/false there I can make that change, or I can bring in another commit again. |
It's probably easier if we (as maintainers) push to your branch to fix it up to get it submitted. That way, we can ensure credit on the commits and get this merged. |
Was this due to a merge conflict? My branch is building fine. Maybe check out a fresh copy of my branch and cherry pick your commit on top of it? |
@TimvdLippe @stevegreenn is anyone working on this? it seems to have stagnated a bit, and this fix would be invaluable to me if it can move forward. |
I cherry-picked the test project onto my branch here: #2618 Once @TimvdLippe reviews the PR, I can merge it and create a new release. |
This landed in #2618 |
Hi!
It was requested by @TimvdLippe that I create a pull request with a new subproject that tests Groovy and mockito-inline. See here: #2522 (comment)
Unfortunately this test is currently failing as part of the
./gradlew clean build
, still throwing a NullPointerException. Hopefully the new subproject can be used to track the issue down though.Steve