Skip to content

Update jna monorepo to v5#10

Draft
renovate-xelians[bot] wants to merge 1 commit into
masterfrom
chore/renovate-major-jna-monorepo
Draft

Update jna monorepo to v5#10
renovate-xelians[bot] wants to merge 1 commit into
masterfrom
chore/renovate-major-jna-monorepo

Conversation

@renovate-xelians

@renovate-xelians renovate-xelians Bot commented Jun 2, 2026

Copy link
Copy Markdown

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
net.java.dev.jna:jna 3.3.05.19.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

java-native-access/jna (net.java.dev.jna:jna)

v5.19.0

Compare Source

==============

Features

  • #​1696: Add LARGE_INTEGER.ByValue to LARGE_INTEGER in WinNT.java - @​baier233.
  • #​1697: Add WlanApi module - @​eranl.
  • #​1718: Add Cups to c.s.j.p.unix providing CUPS printing system bindings for destinations, jobs, options, and server configuration - @​dbwiddis.
  • #​1720: Add groupCount and groupMasks fields to CACHE_RELATIONSHIP in c.s.j.p.win32.WinNT, matching the updated Windows struct layout - @​dbwiddis.
  • #​1719: Add CoreGraphics to c.s.j.p.mac with Quartz Window Services and Display Services bindings; implement getAllWindows() in MacWindowUtils - @​dbwiddis.
  • #​1723: Add ProcFdInfo, InSockInfo, TcpSockInfo, proc_pidfdinfo, statfs64, and vm_deallocate to c.s.j.p.mac.SystemB - @​dbwiddis.
  • #​1725: Add BluetoothApis to c.s.j.p.win32 providing Bluetooth device and radio enumeration via BluetoothFindFirstRadio, BluetoothFindFirstDevice, and related functions - @​dbwiddis.

Bug Fixes

  • #​1644: Fix bug in VARDESC and TYPEDESC causing an illegal memory access - @​lwahonen
  • #​1715: Fix UdevDevice.getSysname() calling udev_device_get_syspath instead of udev_device_get_sysname - @​dbwiddis.
  • #​1721: Fix switched serverName/domainName arguments in Netapi32Util#getDCName - @​dbwiddis.
  • #​1722: Fix Advapi32#RegisterServiceCtrlHandler using wrong Handler type - @​dbwiddis.
  • #​1636: Drop hard dependency on java.lang.SecurityManager/java.security.AccessController - @​matthiasblaesing.
  • #​1724: Fix host_page_size in c.s.j.p.mac.SystemB and getxattr/setxattr/listxattr in c.s.j.p.mac.XAttr using long instead of pointer-sized types for size_t/ssize_t parameters - @​dbwiddis.
  • #​1727: Include DragonFlyBSD in NativeLibrary versioned library resolution, libc special-case loading, and 64-bit search paths - @​dbwiddis.
  • #​1709: Rebuild native library for OpenBSD 7.9 x86-64, drop OpenBSD x86 - @​matthiasblaesing.

v5.18.1

Compare Source

==============

Bug Fixes

v5.18.0

Compare Source

==============

Features

Bug Fixes

v5.17.0

Compare Source

==============

Features

Bug Fixes

v5.16.0

Compare Source

==============

Features

  • #​1626: Add caching of field list and field validation in Structure along with more efficient reentrant read-write locking instead of synchronized() blocks - @​BrettWooldridge.

Bug Fixes

v5.15.0

Compare Source

==============

Features

Bug Fixes

v5.14.0

Compare Source

==============

Features

Bug Fixes

Important Changes

  • The interfaces between Java and native code have changed, so libjnidispatch
    must be rebuilt to be compatible with this release.
  • Release drops support for JDKs 6 + 7, so you'll need at least JDK 8 to
    update to use this version.

v5.13.0

Compare Source

==============

Features

Bug Fixes

  • #​1452: Fix memory allocation/handling for error message generation in native library code (dispatch.c) - @​matthiasblaesing.
  • #​1460: Fix win32 variant date conversion in DST offest window and with millisecond values - @​eranl.
  • #​1472: Fix incorrect bitmask in c.s.j.Pointer#createConstant(int) - @​dbwiddis.
  • #​1481: Fix NPE in NativeLibrary when unpacking from classpath is disabled - @​trespasserw.
  • #​1489: Fixes typo in OpenGL32Util#wglGetProcAddress, instead of parameter procName the hardcoded value wglEnumGpusNV was used - @​soywiz.

v5.12.1

Compare Source

==============

Bug Fixes

v5.12.0

Compare Source

==============

Features

Bug Fixes

Important Changes

  • Memory#dispose, CallbackReference#dispose and NativeLibrary#dispose
    were called by the Object#finalize override. These calls were replaced by
    the use of a cleaner. It is not guaranteed anymore, that dispose is called
    on subclasses on finalization.

v5.11.0

Compare Source

==============

Features

Bug Fixes

v5.10.0

Compare Source

==============

Features

Bug Fixes

v5.9.0

Compare Source

=============

Features

  • #​1336: Add HKEY_CURRENT_USER_LOCAL_SETTINGS to c.s.j.p.win32.WinReg - @​Dani-Hub.
  • #​1337: Add REG_NOTIFY_THREAD_AGNOSTIC to c.s.j.p.win32.WinNet and update REG_LEGAL_CHANGE_FILTER - @​Dani-Hub.
  • #​1338: Add RegNotifyChangeKeyValue to c.s.j.p.win32.Advapi32 - @​Dani-Hub.
  • #​1340: Add CM_Get_DevNode_Registry_Property to c.s.j.p.win32.Cfgmgr32 and corresponding util in c.s.j.p.win32.Cfgmgr32Util - @​dbwiddis.
  • #​1352: Add BringWindowToTop to c.s.j.p.win32.User32 - @​kahgoh.
  • #​1354: Add GetParent to c.s.j.p.win32.User32 - @​kahgoh.
  • #​1360: Add CommandLineToArgvW to c.s.j.p.win32.Shell32 and corresponding util in c.s.j.p.win32.Shell32Util - @​dbwiddis.
  • #​1363: Update NUMA_NODE_RELATIONSHIP in c.s.j.p.win32.WinNT to new version of the structure and improve support for future values of c.s.j.p.win32.WinNT.LOGICAL_PROCESSOR_RELATIONSHIP - @​dbwiddis.

Bug Fixes

  • #​1343: c.s.j.p.mac.CoreFoundation.CFStringRef#stringValue buffer needs space for a null byte - @​dbwiddis.
  • #​1351: Define c.s.j.p.unix.size_t.ByReference and fix macOS sysctl size_t * parameters - @​dbwiddis.
  • #​1362: Clear security sensitive data after usage in c.s.j.p.win32.Crypt32Util#cryptProtectData and #cryptUnprotectData - @​dmytro-sheyko.
  • #​1361: Make c.s.j.p.win32.Crypt32Util#cryptProtectData and #cryptUnprotectData properly handle 0-length array as input - @​dmytro-sheyko.

v5.8.0

Compare Source

=============

Features

  • #​1313: Normalize RESOURCE_PREFIX for darwin to darwin-$arch and split jnidispatch library per architecture - @​matthiasblaesing.
  • #​1318: Add support for linux-riscv64 - @​thentschel.
  • #​1327: Add partial support for future values of c.s.j.p.win32.WinNT.LOGICAL_PROCESSOR_RELATIONSHIP enum present in Windows Insider builds - @​dbwiddis.

Bug Fixes

  • #​1317: Change the maven coordinates of the JPMS artifacts from classifier jpms to custom artifact ids jna-jpms and jna-platform-jpms - @​matthiasblaesing.
  • #​1322: Handle 0-length domain names in c.s.j.p.win32.Advapi32Util#getAccountBySid - @​dbwiddis.
  • #​1326: Ensure pointers indirected from Memory and pointing into Memory retain originating object - @​matthiasblaesing.

Important Changes

  • The maven coordinates of the experimental JPMS (java module system) artifacts
    were moved from using the classifier jpms to custom artifact ids jna-jpms
    and jna-platform-jpms, without an classifier. The reason for this is, that
    the platform artifacts depend on the jna artifacts and need to pull in the
    right variant. This is not possible if the classifier is used.

  • RESOURCE_PREFIX for darwin (mac OS) was changed from darwin to
    darwin-$arch as the fat binaries on mac OS causes various problems:
    It was reported, that binaries were rejected from the appstore because x86
    binaries were found in the application (jnidispatch for mac OS x86) and that
    builds needed to be special cased so that the native library can be
    assembled. The latter is also true for JNA.

    While the prefix is changed, the old prefix is still searched as a fallback
    location, so if only a fat binary is present, it can still be loaded.

v5.7.0

Compare Source

=============

Features

Bug Fixes

  • #​1286: Fix bindings of c.s.j.p.win32.DBT - @​matthiasblaesing.
  • #​326: Fix loading library that re-uses pointers for different callbacks - @​fpapai.
  • #​1244: Fix building on GCC 10 - @​matthiasblaesing.
  • #​1252: - Fix bindings of CTL_ENTRY#getRgAttribute, CTL_INFO#getRgCTLEntry, CTL_INFO#getRgExtension, CERT_EXTENSIONS#getRgExtension, CERT_INFO#getRgExtension, CRL_INFO#getRgCRLEntry, CRL_INFO#getRgExtension, CRL_ENTRY#getRgExtension. Add bindings for CertEnumCertificatesInStore, CertEnumCTLsInStore, CertEnumCRLsInStore and CryptQueryObject in c.s.j.p.win32.Crypt32.
    WARNING: The signatures for CTL_INFO#getRgCTLEntry and CTL_INFO#getRgExtension were changed - as the original signatures were obviously wrong and read the wrong attributes, it is not considered an API break - @​matthiasblaesing.
  • #​1275: Fix CFStringRef#stringValue for empty Strings - @​dyorgio.
  • #​1279: Remove DLLCallback import from CallbackReference - @​dyorgio.
  • #​1278: Improve compatibility of c.s.j.p.WindowUtils#getProcessFilePath and fix unittests for windows 32bit intel - @​matthiasblaesing.
  • #​1284: Fix illegal access exceptions, when retrieving options for private library interfaces with an instance field - @​fkistner.
  • #​1300: Deprecate c.s.j.p.win32.WTypes.BSTR String constructor and setValue method, as BSTR allocation should be managed by COM, Automation, and Interop functions - @​dbwiddis.

Breaking Changes

  • Prebuild native library for darwin x86 (32bit java on mac OS) was removed

v5.6.0

Compare Source

=============

Features

  • #​1160: Make FileUtils#moveToTrash a varargs method - @​matthiasblaesing.
  • #​1167: Add c.s.j.p.win32.Kernel32#GetProcessAffinityMask - @​dbwiddis.
  • #​1168: Add c.s.j.p.win32.Kernel32#SetProcessAffinityMask - @​dbwiddis.
  • #​1169: Wait for process in getLinuxLdPaths - @​rdesgroppes.
  • #​1178: Add c.s.j.p.win32.IPHlpAPI#GetTcpStatistics, c.s.j.p.win32.IPHlpAPI#GetUdpStatistics, c.s.j.p.win32.IPHlpAPI#GetTcpStatisticsEx and c.s.j.p.win32.IPHlpAPI#GetUdpStatisticsEx - @​dbwiddis.
  • #​1182: Add toString to classes extending c.s.j.ptr.ByReference - @​dbwiddis.
  • #​1191: Add c.s.j.p.win32.Advapi32Util#getTokenPrimaryGroup - @​dbwiddis.
  • #​1194: Add GetConsoleScreenBufferInfo, ReadConsoleInput and WriteConsole with associated structures to c.s.j.p.win32.Wincon - @​rednoah.
  • #​1198: Add NetSessionEnum to c.s.j.p.win32.Netapi32 and WTSEnumerateSessions, WTSQuerySessionInformation, and WTSFreeMemory to c.s.j.p.win32.Wtsapi32 - @​dbwiddis.
  • #​1200: Add mappings for libudev to c.s.j.p.linux.Udev - @​dbwiddis.
  • #​1202: Add mappings supporting shared memory including c.s.j.p.unix.LibCAPI types size_t and ssize_t, c.s.j.p.linux.LibC methods munmap(), msync(), and close(), c.s.j.p.unix.LibCUtil mapping mmap() and ftruncate(), and c.s.j.p.linux.LibRT methods shm_open() and shm_unlink() - @​dbwiddis.
  • #​1209: Add mappings for Thread32First and Thread32Next to c.s.j.p.win32.Kernel32 - @​dbwiddis.
  • #​1214: Add mapping for EnumProcesses to c.s.j.p.win32.Psapi and c.s.j.p.win32.PsapiUtil - @​T-Svensson.

Bug Fixes

v5.5.0

Compare Source

=============

Features

Bug Fixes

v5.4.0

Compare Source

=============

Features

  • #​1105: Deprecate c.s.j.p.win32.Advapi32Util.EventLogRecord#getEventId in favor of #getInstanceId - @​dbwiddis.
  • #​1097: Allow .ocx as extension of native libraries on windows - @​dmigowski.
  • #​1108: Improve performance of c.s.j.Structure#newInstance by iteration available constructors instead of exception handling @​bjorndarri.

Bug Fixes

v5.3.1

Compare Source

=============

Bug Fixes

  • #​1089: c.s.j.internal.ReflectionUtils accesses java.lang.invoke.MethodType without reflection, causing java.lang.NoClassDefFoundError on android API level < 26 - @​matthiasblaesing.
  • #​1087: Fix wrong calls to Structure#toArray with zero sized arrays - @​matthiasblaesing.

v5.3.0

Compare Source

=============

Features

  • #​1058: Add selectable timeout to stopService() and improve timeout handling - @​keithharp.
  • #​1050: Add c.s.j.p.win32.VersionHelpers and supporting functions - @​dbwiddis.
  • #​1061: replace toArray(new T[size]) with toArray(new T[0]) for better performance - @​hc-codersatlas.
  • #​1064: Add c.s.j.p.win32.Kernel32.GetLogicalProcessorInformationEx function, convenience Util method and supporting structures - @​dbwiddis.
  • #​1065: Add c.s.j.p.win32.PowrProf#CallNTPowerInformation and supporting structures - @​dbwiddis.
  • #​1063: Enhance c.s.j.p.win32.User32 and associated classes to support keyboard related functionality. - @​kevemueller.
  • #​1068: c.s.j.p.win32.Advapi32Util.getAccountBySid(String systemName, PSID sid) ignored parameter instead of passing it to the native function - @​nirud.
  • #​813: Support for default methods on interfaces (experimental) - @​matthiasblaesing.
  • #​1073: Support COM setters with multiple parameters using c.s.j.p.win32.COM.util.ProxyObject - @​matthiasblaesing.
  • #​1083: Prevent access to unsupported values in c.s.j.p.win32.COM.WbemcliUtil#enumerateProperties and bind c.s.j.p.win32.COM.Wbemcli.IWbemClassObject.GetNames - @​matthiasblaesing.

Bug Fixes

  • #​1052, #​1053: WinXP compatibility for c.s.j.p.win32.PdhUtil - @​dbwiddis.
  • #​1055: Include c.s.j.p.linux in OSGi bundle. - @​dbwiddis.
  • #​1066: On AIX OpenJDK differs from IBM J9 in the mapping of library names. While J9 maps jnidispatch to libjnidispatch.a, OpenJDK maps to libjnidispatch.so, which causes the native library extractor to fail. AIX is now hard-coded to libjnidispatch.a - @​matthiasblaesing.
  • #​1079: Fix maximum structure alignment for Android i386 - @​BugsBeGone.

v5.2.0

Compare Source

=============

Features

Bug Fixes

v5.1.0

Compare Source

=============

Features

Bug Fixes

v5.0.0

Compare Source

=============

Features

  • #​975: Add package versions to OSGi metadata. - @​io7m.
  • #​915: Adding interfaces to call to Cryptui and Crypt32 windows libraries and adding related structures to Wincrypt. - @​rosh89.
  • #​903: Carry HRESULT in c.s.j.p.win32.COM.COMException, introduce c.s.j.p.win32.COM.COMInvokeException as subclass of COMException for exception as the result of a IDispatch#Invoke. The EXECPINFO is unwrapped into fields in the COMInvokeException and correctly freed. - @​matthiasblaesing.
  • #​822: Native#loadLibrary requires that the interface class passed in is an instance of Library. The runtime check can be enhanced by using a constraint generic. This breaks binary compatibility (see notes below) - @​d-noll.

    In a followup, the original loadLibrary methods were deprecated and Native#load methods were introduced, that hold the new generic definitions. So this change is now binary compatible.
  • #​889: The Structure#newInstance receive the target type as a parameter. This adds a limited generic type, so that the return type ist the target type and not a generic structure, removing the necessity to do an explizit cast - @​matthiasblaesing.
  • #​913: Add @ComInterface annotation to com.sun.jna.platform.win32.COM.util.IConnectionPoint to make it possible to retrieve it via IUnknown#queryInterface - @​matthiasblaesing.
  • #​797: Binding Advapi32#EnumDependendServices, Advapi32#EnumServicesStatusEx and Advapi32#QueryServiceStatus. W32Service#stopService was modified to be more resilent when stopping service - @​matthiasblaesing.
  • Bind com.sun.jna.platform.win32.Kernel32.ExpandEnvironmentStrings and add helper method for it as Kernel32Util#expandEnvironmentStrings - @​matthiasblaesing.
  • #​935: Add RegConnectRegistry to Advapi32 mappings. - @​cxcorp.
  • #​947: Allow retrieval of ACEs from com.sun.jna.platform.win32.WinNT.ACL even if the contained ACE is not currently supported - @​jrobhoward.
  • #​954: Add c.s.j.Structure.FieldOrder annotation to define the field order of a structures without implementing Structure#getFieldOrder() - @​idosu.
  • #​959: Added GetProcessTimes and GetProcessIoCounters to com.sun.jna.platform.win32.Kernel32 - @​dbwiddis.
  • #​952: Added CreateMutex, OpenMutex and ReleaseMutex to com.sun.jna.platform.win32.Kernel32 - @​matthiasblaesing.
  • #​973: Added PdhLookupPerfNameByIndex, PdhLookupPerfIndexByName, and PdhEnumObjectItems to c.s.j.platform.win32.Pdh and a c.s.j.platform.win32.PdhUtil class to access them - @​dbwiddis.
  • #​980: Added PERF_OBJECT_TYPE, PERF_COUNTER_BLOCK, and PERF_COUNTER_DEFINITION to c.s.j.platform.win32.WinPerf and added Pointer constructors to ``PERF_INSTANCE_DEFINITIONandPERF_DATA_BLOCK` - @​dbwiddis.
  • #​981: Added WTS_PROCESS_INFO_EX, WTSEnumerateProcessesEx, and WTSFreeMemoryEx to `c.s.j.platform.win32.Wtsapi3

Note

PR body was truncated to here.


Configuration

📅 Schedule: (in timezone Europe/Paris)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@renovate-xelians renovate-xelians Bot changed the title Update dependency net.java.dev.jna:jna to v5 Update jna monorepo to v5 Jun 2, 2026
@renovate-xelians renovate-xelians Bot force-pushed the chore/renovate-major-jna-monorepo branch from 14c403d to e9d2e13 Compare June 3, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants