Bug#1012070: simple-xml: FTBFS with OpenJDK 17 due to an illegal reflective access during the tests
Emmanuel Bourg
ebourg at apache.org
Sun May 29 18:16:24 BST 2022
Source: simple-xml
Version: 2.7.1-3
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17
simple-xml fails to build with OpenJDK 17 due to a test failure. The cause isn't explicit
in the log, but the JUnit report (report/TEST-org.simpleframework.xml.core.MixTest.txt)
leads to an illegal reflective access:
Testsuite: org.simpleframework.xml.core.MixTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.067 sec
Testcase: testMix took 0.061 sec
Caused an ERROR
Unable to make field protected int[] java.util.Calendar.fields accessible: module java.base does not "opens java.util" to unnamed module @4cfaf581
java.lang.reflect.InaccessibleObjectException: Unable to make field protected int[] java.util.Calendar.fields accessible: module java.base does not "opens java.util" to unnamed module @4cfaf581
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.Field.setAccessible(Field.java:172)
at org.simpleframework.xml.core.FieldScanner.process(FieldScanner.java:247)
at org.simpleframework.xml.core.FieldScanner.process(FieldScanner.java:228)
at org.simpleframework.xml.core.FieldScanner.extract(FieldScanner.java:161)
at org.simpleframework.xml.core.FieldScanner.scan(FieldScanner.java:99)
at org.simpleframework.xml.core.FieldScanner.<init>(FieldScanner.java:80)
at org.simpleframework.xml.core.DetailExtractor.getFields(DetailExtractor.java:147)
at org.simpleframework.xml.core.DetailExtractor.getFields(DetailExtractor.java:130)
at org.simpleframework.xml.core.Support.getFields(Support.java:308)
at org.simpleframework.xml.core.ObjectScanner.field(ObjectScanner.java:432)
at org.simpleframework.xml.core.ObjectScanner.scan(ObjectScanner.java:371)
at org.simpleframework.xml.core.ObjectScanner.<init>(ObjectScanner.java:82)
at org.simpleframework.xml.core.DefaultScanner.<init>(DefaultScanner.java:64)
at org.simpleframework.xml.core.ScannerFactory.getInstance(ScannerFactory.java:84)
at org.simpleframework.xml.core.Support.getScanner(Support.java:357)
at org.simpleframework.xml.core.Source.getScanner(Source.java:271)
at org.simpleframework.xml.core.Source.getDecorator(Source.java:286)
at org.simpleframework.xml.core.Composite.writeNamespaces(Composite.java:1272)
at org.simpleframework.xml.core.Composite.writeElement(Composite.java:1232)
at org.simpleframework.xml.core.Composite.writeUnion(Composite.java:1127)
at org.simpleframework.xml.core.Composite.writeElements(Composite.java:1098)
at org.simpleframework.xml.core.Composite.writeSection(Composite.java:1004)
at org.simpleframework.xml.core.Composite.write(Composite.java:975)
at org.simpleframework.xml.core.Composite.write(Composite.java:952)
at org.simpleframework.xml.core.Traverser.write(Traverser.java:236)
at org.simpleframework.xml.core.Traverser.write(Traverser.java:208)
at org.simpleframework.xml.core.Traverser.write(Traverser.java:186)
at org.simpleframework.xml.core.Persister.write(Persister.java:1180)
at org.simpleframework.xml.core.Persister.write(Persister.java:1162)
at org.simpleframework.xml.core.Persister.write(Persister.java:1140)
at org.simpleframework.xml.core.Persister.write(Persister.java:1259)
at org.simpleframework.xml.core.Persister.write(Persister.java:1241)
at org.simpleframework.xml.core.Persister.write(Persister.java:1222)
at org.simpleframework.xml.core.MixTest.testMix(MixTest.java:87)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
More information about the pkg-java-maintainers
mailing list