From f9f28230f93f9254565830c34855f2305a13c7d9 Mon Sep 17 00:00:00 2001 From: Sean Arms <67096+lesserwhirls@users.noreply.github.com> Date: Thu, 7 Aug 2025 11:39:11 -0600 Subject: [PATCH] Do not initialize the Nc4prototypes on class load Fixes Unidata/netcdf-java#1469 --- netcdf4/src/main/java/ucar/nc2/jni/netcdf/Nc4Iosp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netcdf4/src/main/java/ucar/nc2/jni/netcdf/Nc4Iosp.java b/netcdf4/src/main/java/ucar/nc2/jni/netcdf/Nc4Iosp.java index 6c1893586d..919e20d97f 100755 --- a/netcdf4/src/main/java/ucar/nc2/jni/netcdf/Nc4Iosp.java +++ b/netcdf4/src/main/java/ucar/nc2/jni/netcdf/Nc4Iosp.java @@ -58,7 +58,7 @@ public class Nc4Iosp extends AbstractIOServiceProvider implements IOServiceProvi public static final String TRANSLATE_NONE = "none"; public static final String TRANSLATE_NC4 = "nc4"; - private static Nc4prototypes nc4 = NetcdfClibrary.getForeignFunctionInterface(); + private static Nc4prototypes nc4 = null; // TODO: These flags currently control debug messages that are printed to STDOUT. They ought to be logged to SLF4J. // We could use SLF4J markers to filter which debug-level messages are printed.