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
On this page
Latest version 5.19.1, released June 12, 2026. Source repository
Packages on Maven Central run on Java. Java end of life dates.
net.java.dev.jna:jna 5.0.0 breaking changes
- Removed
ACEStructure.getSID
The SID accessor moved from ACEStructure to ACCESS_ACEStructure. github.com - Removed
ACEStructure.getSidString
The SID accessor moved from ACEStructure to ACCESS_ACEStructure. github.com - 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 - Removed
com.sun.jna.Native.getDirectByteBuffer
Use Pointer#getByteBuffer instead. central.sonatype.com - Removed
com.sun.jna.Native.getPreserveLastError
No replacement is provided; it was already a no-op. central.sonatype.com - Removed
com.sun.jna.Native.parseVersion
No replacement is provided. central.sonatype.com - Removed
com.sun.jna.Native.setPreserveLastError
No replacement is provided; it was already a no-op. central.sonatype.com - Removed
com.sun.jna.Platform.isAix
Use Platform#isAIX instead. central.sonatype.com - Removed
com.sun.jna.platform.win32.Kernel32Util.formatMessageFromHR
Use Kernel32Util.formatMessage(HRESULT) instead. github.com - Removed
com.sun.jna.platform.win32.Variant.COM_DAYS_ADJUSTMENT
No replacement is provided. github.com - Removed
com.sun.jna.platform.win32.Variant.MICRO_SECONDS_PER_DAY
No replacement is provided. github.com - Removed
com.sun.jna.platform.win32.Variant.VARIANT.fromJavaDate
No replacement is provided. github.com - Removed
com.sun.jna.platform.win32.Variant.VARIANT.toJavaDate
No replacement is provided. github.com - Removed
com.sun.jna.platform.win32.WinBase.FILETIME.toLong
Use FILETIME#toTime instead. github.com - Removed
com.sun.jna.Pointer.SIZE
Use Native#POINTER_SIZE instead of Pointer#SIZE. central.sonatype.com - Removed
com.sun.jna.Structure.setFieldOrder
Use Structure#getFieldOrder instead. central.sonatype.com - Removed
com.sun.jna.Union.setFieldOrder
Union.setFieldOrder was removed in net.java.dev.jna:jna 5.0.0 central.sonatype.com - Renamed
com.sun.jna.platform.win32.WinNT.ACL.getACEStructures
The method was renamed and its return type widened to ACE_HEADER[]. github.com - Default changed
jna.nosys
The embedded native library is used by default unless this is set otherwise. github.com - 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 - 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 - 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 - Signature changed
com.sun.jna.platform.unix.LibCAPI.getdomainname
The name parameter changed from char[] to byte[]. github.com - Signature changed
com.sun.jna.platform.unix.LibCAPI.gethostname
The name parameter changed from char[] to byte[]. github.com - Signature changed
com.sun.jna.platform.unix.LibCAPI.setdomainname
The name parameter changed from char[] to byte[]. github.com - Signature changed
com.sun.jna.platform.unix.LibCAPI.sethostname
The name parameter changed from char[] to byte[]. github.com - Signature changed
com.sun.jna.platform.win32.Advapi32Util.getFileSecurity
Changed similarly to ACL, so it returns ACE_HEADER based results. github.com - 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 - Signature changed
com.sun.jna.platform.win32.COM.IShellFolder.GetDisplayNameOf
The third parameter changed from PointerByReference to STRRET. github.com - Signature changed
com.sun.jna.platform.win32.Ole32.CLSIDFromString
Pass String instead of WString for the first parameter. github.com - Signature changed
com.sun.jna.platform.win32.Ole32.CoCreateGuid
Pass GUID instead of GUID.ByReference. github.com - Signature changed
com.sun.jna.platform.win32.OleAuto.LoadTypeLib
Use String instead of WString for the first parameter. github.com - Signature changed
com.sun.jna.platform.win32.Shlwapi.StrRetToStr
The first parameter changed to match the STRRET change. github.com - Signature changed
com.sun.jna.platform.win32.Sspi.SecBufferDesc
Use SspiUtil.ManagedSecBufferDesc for most cases. github.com - Signature changed
com.sun.jna.platform.win32.User32.MonitorFromPoint
Pass Point.ByValue instead of Point. github.com - Signature changed
com.sun.jna.Pointer.getString
Use getString(long offset) or getWideString(long offset) instead. central.sonatype.com - Signature changed
com.sun.jna.Pointer.getStringArray
Use getStringArray(long offset) or getWideStringArray(long offset) instead. central.sonatype.com - Signature changed
com.sun.jna.Pointer.setString
Use setString(long offset, String value) or setWideString(long offset, String value) instead. central.sonatype.com - 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 - 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 - 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 - 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 - 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
net.java.dev.jna:jna 4.0.0 breaking changes
- Removed
com.sun.jna.Native.getNativeLibraryResourcePrefix
Native.getNativeLibraryResourcePrefix was removed in net.java.dev.jna:jna 4.0.0 central.sonatype.com - Signature changed
com.sun.jna.Native
Was final class Native; now final class Native implements com.sun.jna.Version. central.sonatype.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.