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
Build with jdk17 fails #307
Comments
The problem is that mockito currently does not support jdk17: mockito/mockito#2212 Can be solved by upgrading to latest mockito version. But javassist's CtClass.toClass() cannot be called with jdk17: jboss-javassist/javassist#400 |
I suppose that this issue can be fixed by changing mockito so that mockito will call CtClass.toClass(Class) or CtClass.toClass(Lookup), etc. Please see http://www.javassist.org/html/javassist/CtClass.html#toClass() |
This issue seems fixed, am building project with Java 17 all right:
|
Probably the reason is that since jdk 17
--illegal-access
does not make any case as mentioned at https://openjdk.java.net/jeps/403Build fails with
The text was updated successfully, but these errors were encountered: