Skip to content

Implement SAFEARRAY access and bugfix VARIANT#618

Merged
dblock merged 3 commits intojava-native-access:masterfrom
matthiasblaesing:safearray
Mar 27, 2016
Merged

Implement SAFEARRAY access and bugfix VARIANT#618
dblock merged 3 commits intojava-native-access:masterfrom
matthiasblaesing:safearray

Conversation

@matthiasblaesing
Copy link
Copy Markdown
Member

Please see individual commits for details.

Comment thread CHANGES.md Outdated
* [#608](https://github.com/java-native-access/jna/pull/608): Mavenize the build process - change parent and native pom artifactId/name to differentiate in IDE and build tools. [@bhamail](https://github.com/bhamail)
* [#613](https://github.com/java-native-access/jna/pull/613): Make Win32Exception extend LastErrorException [@lgoldstein](https://github.com/lgoldstein).
* [#613](https://github.com/java-native-access/jna/pull/614): Added standard 'Kernel32Util#closeHandle' method that throws a Win32Exception if failed to close the handle [@lgoldstein](https://github.com/lgoldstein).
* [#618](https://github.com/java-native-access/jna/pull/618): Implement SAFEARRAY access and bugfix VARIANT [@matthiasblaesing](https://github.com/matthiasblaesing)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing period again. The fact that this is the only problem I find says a lot ;)

@dblock
Copy link
Copy Markdown
Member

dblock commented Mar 13, 2016

This is nice work, also maybe @lgoldstein can take a look?

@matthiasblaesing
Copy link
Copy Markdown
Member Author

The CHANGES.md entry was adjusted - is there any way I can help with review?

@dblock
Copy link
Copy Markdown
Member

dblock commented Mar 26, 2016

Rebase and squash it. I'll take a look again.

- Bind more functions from OleAut32.dll
- Fix bug in function bindings from OleAut32.dll (long vs. LONG)
- Ensure SAFEARRAY.rgsabound is completely accessible
- Modify Variant#getValue and Variant#setValue to allow flexible access
  to data
- Add object oriented helper methods to SAFEARRAY and move
  functionality from limited methods in OleAutoUtil to SAFEARRAY
- Add unittests based on windows search provider that excercise SAFEARRAY functions
- Added a helper for optimized conversion from SAFEARRAY to Object[]

Closes java-native-access#522
@matthiasblaesing
Copy link
Copy Markdown
Member Author

I rebased the changeset onto latest master. For the request to squash the commits - this won't help with review and will destroy the logical structure. The commits are each focused on area:

  • the first in the set fixes the VARIANT asumptions and unittests
  • the second add the SAFEARRAY constructs
  • the third fixes a bug in the COMLateBindingObject - this changeset uses the fixed primitive accessors in VARIANT.

If forced I will squash these, but I don't see benefit from that.

@dblock dblock merged commit 7843544 into java-native-access:master Mar 27, 2016
@dblock
Copy link
Copy Markdown
Member

dblock commented Mar 27, 2016

Merged.

@matthiasblaesing matthiasblaesing deleted the safearray branch March 30, 2016 20:06
mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
Motivation:

How we used QuicConnectEvent to notify about connection migration was
not correct at all. Let's remove it for now as we will introduce
something better once cloudflare/quiche#1660 was
merged into quiche.

Modifications:

Remove QuicConnectEvent

Result:

Get rid of incorrect implementation to prepare for adding a proper one
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.

2 participants