Open jamesnetherton opened 2 months ago
CollectionUtil in hapi-fhir-base imports org.apache.commons.collections4.CollectionUtils.
CollectionUtil
hapi-fhir-base
org.apache.commons.collections4.CollectionUtils
However, commons-collections4 seems to be present on the classpath only because it's a transitive of optional dependency jena-base:
commons-collections4
jena-base
$ mvn dependency:tree -Dincludes=org.apache.commons:commons-collections4 [INFO] ------------------< ca.uhn.hapi.fhir:hapi-fhir-base >------------------- [INFO] Building HAPI FHIR - Core Library 7.5.1-SNAPSHOT [INFO] -------------------------------[ bundle ]------------------------------- [INFO] [INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ hapi-fhir-base --- [INFO] ca.uhn.hapi.fhir:hapi-fhir-base:bundle:7.5.1-SNAPSHOT [INFO] \- org.apache.jena:jena-core:jar:4.9.0:compile (optional) [INFO] \- org.apache.jena:jena-base:jar:4.9.0:compile (optional) [INFO] \- org.apache.commons:commons-collections4:jar:4.4:compile (optional)
Thus in user applications there's the potential for ClassNotFoundException.
ClassNotFoundException
CollectionUtil
inhapi-fhir-base
importsorg.apache.commons.collections4.CollectionUtils
.However,
commons-collections4
seems to be present on the classpath only because it's a transitive of optional dependencyjena-base
:Thus in user applications there's the potential for
ClassNotFoundException
.