Commit c1db53b
committed
ignore pointer size tests
As of JVM 12 and later it is no longer possible to cast away the
``final`` modifier using reflection so the ``forece{32,64}Bit``
helpers error out with an exception:
Tests run: 34, Failures: 0, Errors: 2, Skipped: 1, Time elapsed: 0.052 sec <<< FAILURE! - in org.bridj.DemanglingTest
testIntVsPointer_32bits(org.bridj.DemanglingTest) Time elapsed: 0.006 sec <<< ERROR!
java.lang.RuntimeException: java.lang.NoSuchFieldException: modifiers
at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
at org.bridj.util.ReflectionUtils.makeFieldWritable(ReflectionUtils.java:42)
at org.bridj.util.PlatformTestUtils.forcePointerSize(PlatformTestUtils.java:22)
at org.bridj.util.PlatformTestUtils.force32Bits(PlatformTestUtils.java:30)
at org.bridj.DemanglingTest.testIntVsPointer_32bits(DemanglingTest.java:553)
testIntVsPointer_64bits(org.bridj.DemanglingTest) Time elapsed: 0.001 sec <<< ERROR!
java.lang.RuntimeException: java.lang.NoSuchFieldException: modifiers
at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
at org.bridj.util.ReflectionUtils.makeFieldWritable(ReflectionUtils.java:42)
at org.bridj.util.PlatformTestUtils.forcePointerSize(PlatformTestUtils.java:22)
at org.bridj.util.PlatformTestUtils.force64Bits(PlatformTestUtils.java:33)
at org.bridj.DemanglingTest.testIntVsPointer_64bits(DemanglingTest.java:566)
Disable those tests until the functionality can be restored.
References:
- https://bugs.openjdk.java.net/browse/JDK-8210522
- https://stackoverflow.com/a/56043252/7321177
Signed-off-by: Philipp Gesang <[email protected]>1 parent 5fd27c8 commit c1db53b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| 552 | + | |
552 | 553 | | |
553 | 554 | | |
554 | 555 | | |
| |||
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
| 566 | + | |
565 | 567 | | |
566 | 568 | | |
567 | 569 | | |
| |||
0 commit comments