jstatic: check narrowing for explicit method reference
The arguments for to an explicitly referenced static Java method taking java.lang.Byte java.lang.Short parameters that can be narrowed from fixnums or java.lang.Integer parameters that can narrowed from bignums without losing information. All such invocations should now error if such an invocation would truncate information on coercion. TODO: provide a way (or argument for JCOERCE) for the user to explictly request such narrowing even if it loses information, an often utilized technique on the JVM when dealing with data types that don't work well with the JVM primitive types, such as using the signed byte for bit twiddling. TODO: do the same for JCALL, hopefully refactoring the code.
Showing with 36 additions and 11 deletions