-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Provide Java 9 compatibility #520
Comments
I agree with that however note that mockito 2.1 should still be Java 5 compatible (we still build Java 5 binaries with Java 6). |
I'm afraid we are not:
If Java 5 is in fact a target of Mockito 2.0 I could add Animal sniffer verification that we don't use Java 6 API in the code. We would probably need to decide if 2.1 is just for things that were able to finish before 2.0-final (and important bugfixes) or there are plans to keep a serious development of 2.x line after 2.1 (with backporting non Java 8 specific changes from 3.x branch). |
Damn I didn't see this change. I'm on my phone. However that's fine for me. |
Maybe something to mention in the migration guide though. |
Otherwise for 2.1 I think we will only include few API refactoring like |
Just for information, the parts Mockito uses of Byte Buddy are already fully Java 9 compatible. I do not see any problems on migration. |
I think this is ready now? |
ASM 6 is still in alpha: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.ow2.asm%22%20AND%20a%3A%22asm%22 |
Really don't focus too much on Java 9 it's still months away. |
For your information, logback uses Mockito version 1.10.19 which is apparently not Java 9 compatible. It follows that logback build fails under Java 9. |
Mockito 2 is Java 9 compatible. |
Great. Thank you. |
Running on version 1.9.5 with Jigsaw b162 with --permit-illegal-access. I'm seeing the following warning. Maybe related: Is this fixed in 2.x? Or is there handling if this call fails? |
It might be fixed with Mockito 2 yes, as we are not using CGLib anymore. No promises though 😉 |
I confirmed that the org.mockito.cglib.core.ReflectUtils is gone in 2.x and mockito no longer depends on net.sf.cglib.core. |
Byte Buddy 1.7.2 now supports Java 9 class files. |
Should we just bump bytebuddy to the latest version? Cheers! |
Closing as at last #863 has been fixed as well. Java 9 woohoo 🎉 |
Once having Mockito 2.0 out the door it would be good to explore Java 9 compatibility.
Basic todo list:
Open Java 9 related issues.
The text was updated successfully, but these errors were encountered: