Closed CJStadler closed 2 years ago
@CJStadler Thank you for your contribution. I'll merge it into master, and we'll pull it into the next release.
We're glad you found this limitation. We see the need to do this for OpenJDK 17, however we're not ready to move to full support for OpenJDK 17 because our devops environments don't yet support it (gradle and other dependencies.)
You will see some adjustments to our support statement that will be more limiting.
Thanks so much for your help @cragun47! That makes sense re. OpenJDK 17.
Previously, the
String
from the configuration would always be passed toPaths.get
. On openjdk >=16 passingnull
toPaths.get
throws aNullPointerException
(see https://bugs.openjdk.java.net/browse/JDK-8254876), so this would occur if a configuration option was missing.additional.resources.location
was not included in the defaultconfig.properties
, so theNullPointerException
was always being thrown.This change moves the
null
checks beforePaths.get
is called. It also addsadditional.resources.location
to theconfig.properties
, mostly as an example since it is not strictly necessary.I'm not able to run the test suite with openjdk 17 for unrelated reasons, but I did confirm that if I build from this branch and use that as a dependency in my application I can run it successfully with openjdk 17.
Resolves https://github.com/LinuxForHealth/hl7v2-fhir-converter/issues/427