RFR: 8291640: java/beans/XMLDecoder/8028054/Task.java should use the 3-arg Class.forName [v2]

Ao Qi aoqi at openjdk.org
Fri Aug 5 02:25:11 UTC 2022


> The issue comes from https://github.com/openjdk/jdk/pull/9677#issuecomment-1200811357. 
> 
> If Loom is not supported, two XMLDecoder tests would fail. The issue could be reproduced by zero, for example:
> 
> 
> --------------------------------------------------
> TEST: java/beans/XMLDecoder/8028054/TestConstructorFinder.java
> ...
> Caused by: java.lang.UnsupportedOperationException: VM does not support continuations
> 	at java.base/jdk.internal.vm.ContinuationSupport.ensureSupported(ContinuationSupport.java:49)
> 	at java.base/jdk.internal.vm.Continuation.<clinit>(Continuation.java:52)
> 	... 9 more
> ...
> 
> --------------------------------------------------
> TEST: java/beans/XMLDecoder/8028054/TestMethodFinder.java
> ...
> Caused by: java.lang.UnsupportedOperationException: VM does not support continuations
> 	at java.base/jdk.internal.vm.ContinuationSupport.ensureSupported(ContinuationSupport.java:49)
> 	at java.base/jdk.internal.vm.Continuation.<clinit>(Continuation.java:52)
> 	... 9 more
> ...
> --------------------------------------------------

Ao Qi has updated the pull request incrementally with one additional commit since the last revision:

  revert test/jdk/java/beans/XMLDecoder modification by 8284161

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/9704/files
  - new: https://git.openjdk.org/jdk/pull/9704/files/ef808047..f6fc43a1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9704&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9704&range=00-01

  Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/9704.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9704/head:pull/9704

PR: https://git.openjdk.org/jdk/pull/9704



More information about the client-libs-dev mailing list