Bug: java 11.0.7 is not java 11

15:23	Diffblue Cover indexing in progress: Tests will be automatically written when the Diffblue Cover indexes are updated

15:23	Unsupported Java version
			Unidentified Java versions are not supported.
			Please use Java 8 or Java 11 (but not version 11.0.7).

15:23	Diffblue Cover encountered an error while writing tests: Environment checks failed, please address logged errors

WHAT. THE. HELL.
White horse is not horse, and java 11.0.7 is not java 11.
Pretty interesting but I think you should fix it.

Well, if you guys be too busy to fix,
just show me the code and I can fix it for you, for free.

Hello @XenoAmess

This is a limitation of the Java JVM not Diffblue Cover

JVM 11.0.7 has a regression that makes it unstable causing it to regularly crash - this is a well known issue in Java 11.0.7 and has since been fixed in newer versions of the JVM. Diffblue therefore does not support this specific version of Java as there is no workaround.

Please upgrade or downgrade Java to a supported version

Kind Regards,

Matt @Diffblue

Hey @Matt ,

Which java version do you recommend to use , if the plugin does not work with java 11.

Thanks
Shubham choudhary

Hi @Shubh ,

Thank you for reaching out again - Diffblue Cover does support Java 11; specifically versions 11.0.18 & 11.0.17 are supported. We also support Java 17 versions 17.0.6 & 17.0.5, and Java 8 8u361 & 8u351.

Please upgrade or downgrade Java to a supported version listed above.

Kind regards,
Jane @ Diffblue

Thanks for the quick reply , we are using IntelliJ IDEA 2021.3.3 (Ultimate Edition)
and we have the latest jdk 11 in intellij which has Latest Version
11.0.18.
Still i am facing issues

@Jane_Walls

thanks jane , i was able to generate tests cases with compiler version changed to 11.0.8 and jdk version changes to 11.0.8 in the intellij settings itself

Hi @Shubh

Thank you for sending this information - it seems you are using an old version of IntelliJ, therefore the version of Cover will be old too. Diffblue support’s the last 2 versions of IntelliJ; the newest release of Cover supports IntelliJ versions 2022.3, 2023.1 .
The old versions will explain the behaviour you are seeing; as the old Cover version would support Java 11.0.8, but wouldn’t support the latest version of Java 11 which unlikely existed at the time that version of Cover was released.

To get the most up to date release of Cover, I can update your IntelliJ IDEA to the newest version (2023.1). You will then be able to update the Diffblue Cover version (currently 2023.03.02) through the IntelliJ marketplace.

Please let me know if there are any more questions

Kind regards,

Jane @ Diffblue