Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SAFEARRAY access and bugfix VARIANT #618

Merged
merged 3 commits into from
Mar 27, 2016

Conversation

matthiasblaesing
Copy link
Member

Please see individual commits for details.

@@ -43,6 +43,7 @@ Features
* [#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
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
Member

dblock commented Mar 13, 2016

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

@matthiasblaesing
Copy link
Member Author

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

@dblock
Copy link
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
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
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