You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.AssertionError: EqualsVerifier found a problem in class org.openstreetmap.josm.gui.layer.geoimage.ImageEntry.
-> Error invoking java.lang.invoke.MethodHandles$Lookup#defineClass
For more information, go to: http://www.jqno.nl/equalsverifier/errormessages
at nl.jqno.equalsverifier.api.SingleTypeEqualsVerifierApi.verify(SingleTypeEqualsVerifierApi.java:294)
at org.openstreetmap.josm.gui.layer.geoimage.ImageEntryTest.testEqualsContract(ImageEntryTest.java:39)
...
Caused by: java.lang.IllegalAccessError: superclass access check failed: class nl.jqno.equalsverifier.internal.reflection.ImageAccessor$$DynamicSubclass$752001567 (in unnamed module @0x31a5c39e) cannot access class sun.awt.image.SurfaceManager$ImageAccessor (in module java.desktop) because module java.desktop does not export sun.awt.image to unnamed module @0x31a5c39e
at java.base/java.lang.ClassLoader.defineClass0(Native Method)
at java.base/java.lang.System$2.defineClass(System.java:2193)
at java.base/java.lang.invoke.MethodHandles$Lookup$ClassDefiner.defineClass(MethodHandles.java:2446)
at java.base/java.lang.invoke.MethodHandles$Lookup$ClassDefiner.defineClass(MethodHandles.java:2423)
at java.base/java.lang.invoke.MethodHandles$Lookup.defineClass(MethodHandles.java:1850)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at nl.jqno.equalsverifier.internal.lib.bytebuddy.dynamic.loading.ClassInjector$UsingLookup$Dispatcher$ForJava9CapableVm.defineClass(ClassInjector.java:1773)
... 108 more
Expected behavior
No error.
Version
3.5.4
The text was updated successfully, but these errors were encountered:
Describe the bug
Test work with Java 8-15, no longer with Java 16, throws an IllegalAccessError.
To Reproduce
Run test below with Java 16.
Code that triggers the behavior
Error message
Expected behavior
No error.
Version
3.5.4
The text was updated successfully, but these errors were encountered: