You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest to mark the broken functions @deprecated and add fixed versions with corrected arguments. I would move the documentation to the new method and retain only a pointer to the new method and a reasoning to not continue use. That way everybody who cares will be warned and situation where the functions with the old binding work, will continue to work.
How best to handle a size_t by reference? I could put a Pointer in the mapping, or create a class very similar to NativeLongByReferene that switches on Native.SIZE_T_SIZE rather than pointer size.
Mappings of
sysctl
contributed in #452 incorrectly usedIntByReference
as the type for the size parameter, which is incorrect, as its type issize_t
.This incorrect mapping did not seem to cause any problems in macOS 10.x. However, beginning in macOS 11.x systcl calls are failing randomly.
The bug was introduced when the mappings were originally committed in #452 in someone's first PR to JNA.
Retrieve the command line arguments of a process:
Comments: Happy to fix my own blunder, will by definition not be backwards compatible. How do we handle situations like this?
The text was updated successfully, but these errors were encountered: