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
JDK9, power mockito 2.0.0-beta.5 - final class issue when mocking static method #888
JDK9, power mockito 2.0.0-beta.5 - final class issue when mocking static method #888
Comments
Please, try powermock-2.0.0-beta.7 |
I'm tried the 2.0.0-RC.4 version, but, there is the same problem 👎 |
Hi, have the exact same problem, is there an ETA for the solution please? Thanks, |
Same here. This bug doesn't seem fixed. Also, shouldn't |
@thekingnothing - The PR which listed as fixing this was, in fact, fixing a different problem. It was resolving the line, from above:
However, the title clearly states that the issue is the
Can this bug be reopened? I'm still encountering this with
|
I'm also seeing the same issue with JDK 8, mockito 2.82.2 and powermock 2.0.2. |
Update - I've just identified it's a combination of powermock 2.x with mockito 2.27.0 (and newer). |
I have a test that used to run fine in PowerMockito 1.7.1, since moving to java 9 and 2.0.0-beta.5 I am seeing issues with the same test.
I have a reproduction scenario:
Example class:
Example test:
I am seeing the following error on running the test:
I know that 2.0.0-beta.5 resolved a lot of these, did one slip through the cracks or has the approach changed for these kind of mocks between the two versions?
The text was updated successfully, but these errors were encountered: