Skip to content

Commit

Permalink
Merge pull request #407 from snuyanzin/JNA_UPGRADE
Browse files Browse the repository at this point in the history
Upgrade jna to 5.3.1
  • Loading branch information
gnodet committed Jul 4, 2019
2 parents 0fd273f + 740a395 commit 0376b96
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

<jna.version>4.2.2</jna.version>
<jna.version>5.3.1</jna.version>
<jansi.version>1.18</jansi.version>
<juniversalchardet.version>1.0.3</juniversalchardet.version>
<sshd.version>2.1.0</sshd.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

public class FreeBsdNativePty extends JnaNativePty {

private static final CLibrary C_LIBRARY = (CLibrary) Native.loadLibrary(Platform.C_LIBRARY_NAME, CLibrary.class);
private static final CLibrary C_LIBRARY = Native.load(Platform.C_LIBRARY_NAME, CLibrary.class);

public interface UtilLibrary extends com.sun.jna.Library {

void openpty(int[] master, int[] slave, byte[] name, CLibrary.termios t, CLibrary.winsize s) throws LastErrorException;

UtilLibrary INSTANCE = (UtilLibrary) Native.loadLibrary("util", UtilLibrary.class);
UtilLibrary INSTANCE = Native.load("util", UtilLibrary.class);
}

public static FreeBsdNativePty current() throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

public class LinuxNativePty extends JnaNativePty {

private static final CLibrary C_LIBRARY = (CLibrary) Native.loadLibrary(Platform.C_LIBRARY_NAME, CLibrary.class);
private static final CLibrary C_LIBRARY = Native.load(Platform.C_LIBRARY_NAME, CLibrary.class);

public interface UtilLibrary extends com.sun.jna.Library {

void openpty(int[] master, int[] slave, byte[] name, CLibrary.termios t, CLibrary.winsize s) throws LastErrorException;

UtilLibrary INSTANCE = (UtilLibrary) Native.loadLibrary("util", UtilLibrary.class);
UtilLibrary INSTANCE = Native.load("util", UtilLibrary.class);
}

public static LinuxNativePty current() throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

public class OsXNativePty extends JnaNativePty {

private static final CLibrary C_LIBRARY = (CLibrary) Native.loadLibrary(Platform.C_LIBRARY_NAME, CLibrary.class);
private static final CLibrary C_LIBRARY = Native.load(Platform.C_LIBRARY_NAME, CLibrary.class);

public static OsXNativePty current() throws IOException {
int slave = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

public class SolarisNativePty extends JnaNativePty {

private static final CLibrary C_LIBRARY = (CLibrary) Native.loadLibrary(Platform.C_LIBRARY_NAME, CLibrary.class);
private static final CLibrary C_LIBRARY = Native.load(Platform.C_LIBRARY_NAME, CLibrary.class);

public static SolarisNativePty current() throws IOException {
int slave = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

interface Kernel32 extends StdCallLibrary {

Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class, W32APIOptions.UNICODE_OPTIONS);
Kernel32 INSTANCE = Native.load("kernel32", Kernel32.class, W32APIOptions.UNICODE_OPTIONS);

Pointer INVALID_HANDLE_VALUE = Pointer.createConstant(-1L);

Expand Down

0 comments on commit 0376b96

Please sign in to comment.