-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Can't run tests with Java 9 and above #1541
Comments
@doom369 |
@slandelle yes. it is in JDK, however, it is now in the separate module that will be removed soon (in java 11 I believe), so in order to get it in Java9 and above you need either to add "--add-modules java.activation" during jvm start or add above dependency. Adding dependency is recommended way, as those classes will be removed from JDK. |
fixed Note that AHC is not intended to be built with JKD9+ atm as the binary wouldn't be compatible with JDK8 (due to new ByteBuffer#flip). |
It is actually could be fixed very easily too:
I use |
Yeah, I know, but that means uglifying code everywhere. Netty has the same issue. |
Agree. There are still a lot of people who use 1.5 :). So understandable. |
By the way, this ticket is not yet resolved, as powermock uses removed from JDK API :). I tried to remove it but got some tests failed. But I have a feeling they were failing before. |
Nah, I removed Powermock in dedicated commit and upgraded Mockito. |
Spotted issues so far:
In order to fix that you need to add:
Fix requires either update powermock dependency to the latest version (2.0.0.beta5) or test should be changed a bit in order to remove it and use only latest mockito.
The text was updated successfully, but these errors were encountered: