Ondro and others,
> Therefore I suggest that we change the existing virtual thread tests in
the TCK so that they don't validate anything about virtual threads. They
should just ensure that an app with virtual=true can be deployed and
runs as expected, regardless of whether platform or virtual threads are
used.
From my understanding, the added support for Java 17 did not exclude Java 21 so as you stated we have to support running the TCK against Java 17 and Java 21.
So what I have done is added the UsingVirtualThreads annotation to the TCK which can be put on any test class that will attempt to deploy an application with `virtual=true`.
If the test is running on Java 17, the test class will be skipped and the application will never be deployed.
If the test is running on Java 21, the test class will proceed and the application will be deployed.
Furthermore, I added assumptions to any test method that makes assertions about virtual threads. This means that if a platform running on Java 21 does not support virtual threads the test case will exit there and not attempt to make any assertions about virtual threads.
I think this hits all the points brought up in this email thread that were concerns for the TCK.
If I missed anything let me know here or on the PR.
Thank you,
Kyle Jon Aure