akuhtz commented on PR #1183: URL: https://github.com/apache/commons-lang/pull/1183#issuecomment-2133650937
@garydgregory I think I get the same issue that is described here when running a test that compares 2 ArrayList instances with JDK17. Is this reproducible? ``` @Test void testEqualsArrayList() { List<String> tracks = new ArrayList<>(); List<String> deserializedTracks = new ArrayList<>(); Assertions.assertTrue(EqualsBuilder.reflectionEquals(tracks, deserializedTracks)); } ``` This is the stacktrace. ``` java.lang.reflect.InaccessibleObjectException: Unable to make field private static final long java.util.ArrayList.serialVersionUID accessible: module java.base does not "opens java.util" to unnamed module @4de5031f at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) at java.base/java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:130) at org.apache.commons.lang3.builder.EqualsBuilder.reflectionAppend(EqualsBuilder.java:1020) at org.apache.commons.lang3.builder.EqualsBuilder.reflectionAppend(EqualsBuilder.java:983) at org.apache.commons.lang3.builder.EqualsBuilder.reflectionEquals(EqualsBuilder.java:236) at org.apache.commons.lang3.builder.EqualsBuilder.reflectionEquals(EqualsBuilder.java:271) at org.apache.commons.lang3.builder.EqualsBuilder.reflectionEquals(EqualsBuilder.java:322) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org