Blame SOURCES/compliance-for-jna-4.patch

92cdef
From 6851cb325a3508bbdaf58324dcf5968b31eebde8 Mon Sep 17 00:00:00 2001
92cdef
From: Zuzana Miklankova <zmiklank@redhat.com>
92cdef
Date: Mon, 11 Apr 2022 12:44:39 +0200
92cdef
Subject: [PATCH] compliance for jna 4
92cdef
92cdef
More information:
92cdef
https://github.com/java-native-access/jna/blob/5.0.0/src/com/sun/jna/Native.java#L599
92cdef
https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md#features-12
92cdef
92cdef
---
92cdef
 .../mariadb/jdbc/internal/io/socket/SharedMemorySocket.java   | 4 ++--
92cdef
 .../org/mariadb/jdbc/internal/util/pid/JnaPidFactory.java     | 2 +-
92cdef
 2 files changed, 3 insertions(+), 3 deletions(-)
92cdef
92cdef
diff --git a/src/main/java/org/mariadb/jdbc/internal/io/socket/SharedMemorySocket.java b/src/main/java/org/mariadb/jdbc/internal/io/socket/SharedMemorySocket.java
92cdef
index 74a4f4b1..2abdcba8 100644
92cdef
--- a/src/main/java/org/mariadb/jdbc/internal/io/socket/SharedMemorySocket.java
92cdef
+++ b/src/main/java/org/mariadb/jdbc/internal/io/socket/SharedMemorySocket.java
92cdef
@@ -284,7 +284,7 @@ public class SharedMemorySocket extends Socket {
92cdef
 
92cdef
   public interface Kernel32 extends StdCallLibrary {
92cdef
 
92cdef
-    Kernel32 INSTANCE = Native.load("Kernel32", Kernel32.class, WIN32API_OPTIONS);
92cdef
+    Kernel32 INSTANCE = Native.loadLibrary("Kernel32", Kernel32.class, WIN32API_OPTIONS);
92cdef
     int FILE_MAP_WRITE = 0x0002;
92cdef
     int FILE_MAP_READ = 0x0004;
92cdef
     int EVENT_MODIFY_STATE = 0x0002;
92cdef
@@ -327,7 +327,7 @@ public class SharedMemorySocket extends Socket {
92cdef
 
92cdef
   public interface Advapi32 extends StdCallLibrary {
92cdef
 
92cdef
-    Advapi32 INSTANCE = Native.load("advapi32", Advapi32.class, WIN32API_OPTIONS);
92cdef
+    Advapi32 INSTANCE = Native.loadLibrary("advapi32", Advapi32.class, WIN32API_OPTIONS);
92cdef
 
92cdef
     boolean ConvertStringSecurityDescriptorToSecurityDescriptor(
92cdef
         String sddl, int sddlVersion, PointerByReference psd, IntByReference length);
92cdef
diff --git a/src/main/java/org/mariadb/jdbc/internal/util/pid/JnaPidFactory.java b/src/main/java/org/mariadb/jdbc/internal/util/pid/JnaPidFactory.java
92cdef
index 88cc2d5e..6e872035 100644
92cdef
--- a/src/main/java/org/mariadb/jdbc/internal/util/pid/JnaPidFactory.java
92cdef
+++ b/src/main/java/org/mariadb/jdbc/internal/util/pid/JnaPidFactory.java
92cdef
@@ -99,7 +99,7 @@ public class JnaPidFactory {
92cdef
   }
92cdef
 
92cdef
   private interface CLibrary extends Library {
92cdef
-    CLibrary INSTANCE = Native.load("c", CLibrary.class);
92cdef
+    CLibrary INSTANCE = Native.loadLibrary("c", CLibrary.class);
92cdef
 
92cdef
     int getpid();
92cdef
   }
92cdef
-- 
92cdef
2.35.1
92cdef