Joe Witt created NIFI-7741: ------------------------------ Summary: Apache NiFi build fails with Java 8 OpenJ9 JVM Key: NIFI-7741 URL: https://issues.apache.org/jira/browse/NIFI-7741 Project: Apache NiFi Issue Type: Improvement Environment: Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec Java version: 1.8.0_265, vendor: Eclipse OpenJ9, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-8-openj9.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.15.6", arch: "x86_64", family: "mac" Reporter: Joe Witt
This has also been verified on a linux installation of openj9 as well. [ERROR] Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.037 s <<< FAILURE! - in org.apache.nifi.util.ReflectionUtilsTest [ERROR] validateFailureWithWrongArgumentType(org.apache.nifi.util.ReflectionUtilsTest) Time elapsed: 0.007 s <<< ERROR! java.lang.Exception: Unexpected exception, expected<java.lang.IllegalArgumentException> but was<java.lang.reflect.InvocationTargetException> at org.apache.nifi.util.ReflectionUtilsTest.validateFailureWithWrongArgumentType(ReflectionUtilsTest.java:71) Caused by: java.lang.ClassCastException: java.lang.String incompatible with java.lang.Integer at org.apache.nifi.util.ReflectionUtilsTest.validateFailureWithWrongArgumentType(ReflectionUtilsTest.java:71) [~markap14] Looked into it and it appears the OpenJ9 JVM throws a ClassCastException instead of an IllegalArgumentException as is supposed to be the case as per Javadocs of Java. Unclear if this is a known/filed JDK bug for OpenJ9. I have another test which fails in this configuration as well on Linux. Will share that information shortly. -- This message was sent by Atlassian Jira (v8.3.4#803005)