Skip to content

Improve SAFEARRAY (Closeable, Autoconversion, VARIANT wrapping)#718

Merged
matthiasblaesing merged 1 commit intojava-native-access:masterfrom
matthiasblaesing:improve_safearray
Oct 20, 2016
Merged

Improve SAFEARRAY (Closeable, Autoconversion, VARIANT wrapping)#718
matthiasblaesing merged 1 commit intojava-native-access:masterfrom
matthiasblaesing:improve_safearray

Conversation

@matthiasblaesing
Copy link
Copy Markdown
Member

- SAFEARRAY now implements Closeable - on recent java versions this
  allows handling SAFEARRAY using try-with-resource
- When wrapped in a VARIANT the correct type is not VT_SAFEARRAY, but
  VT_ARRAY or'd with the type of the SAFEARRAY elements
- VT_SAFEARRAY is not a valid value for VARIANT:
  https://msdn.microsoft.com/de-de/library/windows/desktop/ms221170(v=vs.85).aspx
- When used with com.sun.jna.platform.win32.com.util.ProxyObject
  SAFEARRAY is correctly wrapped into a VARIANT
@matthiasblaesing matthiasblaesing merged commit e823ae2 into java-native-access:master Oct 20, 2016
@matthiasblaesing matthiasblaesing deleted the improve_safearray branch October 22, 2016 13:45
mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
Motivation:

A new netty release is out

Modifications:

Update to 4.1.110

Result:

Use latest netty release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant