Integrated: 8291640: java/beans/XMLDecoder/8028054/Task.java should use the 3-arg Class.forName

Ao Qi aoqi at openjdk.org
Thu Aug 11 19:33:49 UTC 2022


On Mon, 1 Aug 2022 16:23:59 GMT, Ao Qi <aoqi at openjdk.org> wrote:

> 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
> ...
> --------------------------------------------------

This pull request has now been integrated.

Changeset: dedc05cb
Author:    Ao Qi <aoqi at openjdk.org>
Committer: Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/dedc05cb40617f7b7e2cc235528b1892dcba4cd3
Stats:     5 lines in 3 files changed: 1 ins; 0 del; 4 mod

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

Co-authored-by: Alan Bateman <alanb at openjdk.org>
Reviewed-by: alanb, prr

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

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



More information about the client-libs-dev mailing list