Resolution: Not A Defect
Jenkins 2.357 on Windows Server, using JRE11
I switched my Jenkins installation to using Java 11 recently on Windows. I did this by changing replacing the jre folder within my Jenkins installation.
When I upgraded to Jenkins 2.357 this morning (using the built-in 'upgrade automatically' functionality), all seemed fine initially, but when I tried to build one of my projects later, which is built with Java 8 update 312, it failed, with a ClassCastException.
I've attached the console output from the build.
Confirmation of local jre as being Java 11:
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment Corretto-22.214.171.124.1 (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM Corretto-126.96.36.199.1 (build 11.0.12+7-LTS, mixed mode)C:\applications\Jenkins\jre>