[HHH-13965] AssertionError exception is thrown by SqlFunctionMetadataBuilderContributorIllegalClassArgumentTest when executing on Eclipse OpenJ9 VM AdoptOpenJDK (v. 11.0.6)
This commit is contained in:
parent
94c13058ac
commit
ce3a935621
|
@ -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" ) );
|
||||
|
|
Loading…
Reference in New Issue