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
A funny thing happened while writing 959e14c: I saw that
JniBuiltinMarshalers.tt wasn't doing anything for java.lang.Byte!
(Quite an oversight! :-(
So I add an entry for "Byte", and it promptly breaks because of a
naming inconsistency: for most JNI marshal methods, I've been
following .NET convention -- CallInt64Method(), not CallLongMethod().
I failed to do so with respect to "byte", calling it Byte instead of
SByte (the Java `byte` type is signed, not unsigned).
(Interestingly I properly named JavaSByteArray. It's the JNI
Call*Method() names which are off!)
Add SByte marshaling to JniBuiltinMarshalers.tt so that values of type
java.lang.Byte and 'B' can be properly auto-marshaled.
Fixup generator to emit CallSByteMethod() methods instead of
CallByteMethod() methods.
Fixup all Call*ByteMethod() uses to be Call*SByteMethod() in the
public API, promoting consistency (and allowing the new SByte
auto-marshaler to actually compile).
0 commit comments