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

#615: added TYPEFLAGS constants for TYPEATTR in ITypeInfo.GetTypeAttr() #621

Merged
merged 1 commit into from
Mar 27, 2016

Conversation

SevenOf9Sleeper
Copy link
Contributor

No description provided.

@@ -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).
* [#621](https://github.com/java-native-access/jna/pull/621): COM: Added TYPEFLAGS constants for TYPEATTR in ITypeInfo.GetTypeAttr() [@SevenOf9Sleeper](https://github.com/SevenOf9Sleeper).
Copy link
Member

Choose a reason for hiding this comment

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

Can you please try to make this look more like the other CHANGELOG entries please (and fix anything above that doesn't look the same)?

A correct one is:

* [#569](https://github.com/java-native-access/jna/pull/569): Added `com.sun.jna.platform.win32.Winspool.PRINTER_INFO_2` support. Added GetPrinter and ClosePrinter functions in `com.sun.jna.platform.win32.Winspool` - [@IvanRF](https://github.com/IvanRF).

There's an issue number, a dash before the Github name, all code is back-quoted and we mention namespaces, particularly important since JNA is not just Win32.

@dblock
Copy link
Member

dblock commented Mar 24, 2016

Squash your commits, too, please.

@SevenOf9Sleeper SevenOf9Sleeper force-pushed the com_add_typeflags branch 2 times, most recently from 563cc85 to 10b96be Compare March 26, 2016 17:50
@SevenOf9Sleeper
Copy link
Contributor Author

I have done the demanded changes. But I hav no clue why the build has failed?! Seems so, that it has nothing to do with my changes...

@matthiasblaesing
Copy link
Member

I just reissued the testrun and it came back green. The failing test relies on unloading and (I asume) garbage collection - the JVM has not guarantees for this, just observed behaviour.

I have one last nit-pick - the other constants in this interface are decared on the interface level, not the structure level (see FADF_*). The values are verified, so then it could be merged.

BTW: Nice work in CHANGES.md - much appretiated!

@SevenOf9Sleeper
Copy link
Contributor Author

referring to your "nit-pick"...:-) I have thought about where to place the constants. And I have decided to place them in the structure TYPEATTR where they are needed.
I must admit that I have no clue where the FADF_-constants are being used?! When I search for some references I only find out, that they are redundant defined... in OleAuto as well as in OaIdl but what is the use of them?
Do you really think the TYPEFLAGS_constants are better off in OaIdl on top level?

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

dblock commented Mar 27, 2016

Merged this. Constants should be declared where they are declared in the Windows SDK. Is that what you're referring to?

@SevenOf9Sleeper SevenOf9Sleeper deleted the com_add_typeflags branch April 5, 2016 20:15
mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
Motivation:

Creating a new Mac instance each time is wasteful. As the method is
expected to be called from the EventLoop we should better cache these in
a FastThreadLocal

Modifications:

Cache instances in FastThreadLocal

Result:

Less overhead
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.

3 participants