---
title: "net.java.dev.jna:jna 5.0.0 Breaking Changes on Maven Central"
description: "What each net.java.dev.jna:jna release removed, renamed or changed: 45 breaking changes in 2 versions on Maven Central, each with its source."
canonical_url: https://since.dev/packages/maven/net.java.dev.jna:jna
last_updated: 2026-12-04
---

# net.java.dev.jna:jna breaking changes

net.java.dev.jna:jna 5.0.0 (October 7, 2018) is its newest release with breaking changes, 43 of them. The first: Removed ACEStructure.getSID. Every breaking API change we have recorded in net.java.dev.jna:jna on Maven Central: 45 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.19.1`, released June 12, 2026. [Source repository](https://github.com/java-native-access/jna)

Packages on Maven Central run on Java. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 43 breaking changes in 1 version.

## net.java.dev.jna:jna 5.0.0 breaking changes

net.java.dev.jna:jna 5.0.0, released October 7, 2018: 43 breaking changes.

- **Removed** `ACEStructure.getSID`  

The SID accessor moved from ACEStructure to ACCESS_ACEStructure. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Removed** `ACEStructure.getSidString`  

The SID accessor moved from ACEStructure to ACCESS_ACEStructure. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Removed** `com.sun.jna.Function.SIZE`  

com.sun.jna.Function.SIZE was removed in net.java.dev.jna:jna 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Removed** `com.sun.jna.Native.getDirectByteBuffer`  

Use Pointer#getByteBuffer instead. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Removed** `com.sun.jna.Native.getPreserveLastError`  

No replacement is provided; it was already a no-op. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Removed** `com.sun.jna.Native.parseVersion`  

No replacement is provided. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Removed** `com.sun.jna.Native.setPreserveLastError`  

No replacement is provided; it was already a no-op. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Removed** `com.sun.jna.Platform.isAix`  

Use Platform#isAIX instead. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Removed** `com.sun.jna.platform.win32.Kernel32Util.formatMessageFromHR`  

Use Kernel32Util.formatMessage(HRESULT) instead. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Removed** `com.sun.jna.platform.win32.Variant.COM_DAYS_ADJUSTMENT`  

No replacement is provided. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Removed** `com.sun.jna.platform.win32.Variant.MICRO_SECONDS_PER_DAY`  

No replacement is provided. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Removed** `com.sun.jna.platform.win32.Variant.VARIANT.fromJavaDate`  

No replacement is provided. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Removed** `com.sun.jna.platform.win32.Variant.VARIANT.toJavaDate`  

No replacement is provided. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Removed** `com.sun.jna.platform.win32.WinBase.FILETIME.toLong`  

Use FILETIME#toTime instead. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Removed** `com.sun.jna.Pointer.SIZE`  

Use Native#POINTER_SIZE instead of Pointer#SIZE. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Removed** `com.sun.jna.Structure.setFieldOrder`  

Use Structure#getFieldOrder instead. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Removed** `com.sun.jna.Union.setFieldOrder`  

Union.setFieldOrder was removed in net.java.dev.jna:jna 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Renamed** `com.sun.jna.platform.win32.WinNT.ACL.getACEStructures`  

The method was renamed and its return type widened to ACE_HEADER\[\]. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Default changed** `jna.nosys`  

The embedded native library is used by default unless this is set otherwise. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.Function.getString`  

The signature of Function.getString changed in net.java.dev.jna:jna 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.Function.getStringArray`  

The signature of Function.getStringArray changed in net.java.dev.jna:jna 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.Function.setString`  

The signature of Function.setString changed in net.java.dev.jna:jna 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.platform.unix.LibCAPI.getdomainname`  

The name parameter changed from char\[\] to byte\[\]. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.unix.LibCAPI.gethostname`  

The name parameter changed from char\[\] to byte\[\]. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.unix.LibCAPI.setdomainname`  

The name parameter changed from char\[\] to byte\[\]. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.unix.LibCAPI.sethostname`  

The name parameter changed from char\[\] to byte\[\]. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.Advapi32Util.getFileSecurity`  

Changed similarly to ACL, so it returns ACE_HEADER based results. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.COM.COMException`  

pExcepInfo and puArgErr were removed and hresult was added; that information moved to COMInvokeException. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.COM.IShellFolder.GetDisplayNameOf`  

The third parameter changed from PointerByReference to STRRET. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.Ole32.CLSIDFromString`  

Pass String instead of WString for the first parameter. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.Ole32.CoCreateGuid`  

Pass GUID instead of GUID.ByReference. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.OleAuto.LoadTypeLib`  

Use String instead of WString for the first parameter. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.Shlwapi.StrRetToStr`  

The first parameter changed to match the STRRET change. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.Sspi.SecBufferDesc`  

Use SspiUtil.ManagedSecBufferDesc for most cases. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.platform.win32.User32.MonitorFromPoint`  

Pass Point.ByValue instead of Point. [github.com](https://github.com/java-native-access/jna/blob/5.0.0/CHANGES.md)
- **Signature changed** `com.sun.jna.Pointer.getString`  

Use getString(long offset) or getWideString(long offset) instead. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.Pointer.getStringArray`  

Use getStringArray(long offset) or getWideStringArray(long offset) instead. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.Pointer.setString`  

Use setString(long offset, String value) or setWideString(long offset, String value) instead. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.StringArray.getString`  

The signature of StringArray.getString changed in net.java.dev.jna:jna 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.StringArray.setString`  

The signature of StringArray.setString changed in net.java.dev.jna:jna 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.Structure.getFieldOrder`  

Was protected abstract java.util.List\<String> getFieldOrder(); now protected java.util.List\<String> getFieldOrder(). [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.Structure.newInstance`  

Was static com.sun.jna.Structure newInstance(Class\<?>) static com.sun.jna.Structure newInstance(Class\<?>, com.sun.jna.Pointer); now static \<T extends com.sun.jna.Structure> T newInstance(Class\<T>) static \<T extends com.sun.jna.Structure> T... [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)
- **Signature changed** `com.sun.jna.Union.newInstance`  

Was static com.sun.jna.Structure newInstance(Class\<?>) static com.sun.jna.Structure newInstance(Class\<?>, com.sun.jna.Pointer); now static \<T extends com.sun.jna.Structure> T newInstance(Class\<T>) static \<T extends com.sun.jna.Structure> T... [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/5.0.0)

## net.java.dev.jna:jna 4.0.0 breaking changes

net.java.dev.jna:jna 4.0.0, released July 4, 2013: 2 breaking changes.

- **Removed** `com.sun.jna.Native.getNativeLibraryResourcePrefix`  

Native.getNativeLibraryResourcePrefix was removed in net.java.dev.jna:jna 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/4.0.0)
- **Signature changed** `com.sun.jna.Native`  

Was final class Native; now final class Native implements com.sun.jna.Version. [central.sonatype.com](https://central.sonatype.com/artifact/net.java.dev.jna/jna/4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
