Skip to content
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

tests are broken on Java 17 #886

Open
johanvos opened this issue Dec 2, 2022 · 0 comments
Open

tests are broken on Java 17 #886

johanvos opened this issue Dec 2, 2022 · 0 comments

Comments

@johanvos
Copy link
Contributor

johanvos commented Dec 2, 2022

Using Java 17, the tests that are using easymock are broken. They can be fixed using a new version of easymock.

This error is seen:

[ERROR] test_lock(com.github.sarxos.webcam.WebcamLockTest)  Time elapsed: 0.045 s  <<< ERROR!
java.lang.ExceptionInInitializerError
	at com.github.sarxos.webcam.WebcamLockTest.before(WebcamLockTest.java:25)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @26408470
	at com.github.sarxos.webcam.WebcamLockTest.before(WebcamLockTest.java:25)
johanvos added a commit to johanvos/webcam-capture that referenced this issue Dec 2, 2022
msgilligan pushed a commit to SupernautApp/webcam-capture that referenced this issue Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant