[HHH-13965] AssertionError exception is thrown by SqlFunctionMetadataBuilderContributorIllegalClassArgumentTest when executing on Eclipse OpenJ9 VM AdoptOpenJDK (v. 11.0.6)

This commit is contained in:
lvydra 2024-02-06 12:04:03 +01:00 committed by Christian Beikov
parent 94c13058ac
commit ce3a935621
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public class SqlFunctionMetadataBuilderContributorIllegalClassArgumentTest
catch (ClassCastException e) {
final String javaVendor = System.getProperty("java.vendor");
if (javaVendor != null && javaVendor.startsWith("IBM")) {
if (javaVendor != null && (javaVendor.startsWith("IBM") || javaVendor.startsWith("AdoptOpenJDK") || javaVendor.startsWith("Eclipse OpenJ9"))) {
assertTrue( e.getMessage().contains( "incompatible with" ) );
} else {
assertTrue( e.getMessage().contains( "cannot be cast to" ) );