Fix Java error with integer, enum overloads
The Java wrappers simply cast enum types to jint
, and do not distinguish them as individual types. So when a method is overloaded with both int
(or unsigned int
) and an enum type, only one of the overloads can be wrapped. The int
(or unsigned int
) overload is the one that is chosen.
This is a late follow-up to 1bb3de05, which first introduced enum wrapping to the Java wrappers.
Closes: #19155 (closed)
Backport: release
Edited by David Gobbi