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

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