Re: casting to a short

I believe that the transform just assumes that whatever you put in for a
literal can be directly copied into the Java source and that it only
generates cast operators when there is a mismatch between a variable type
and parameter type.  Introducing a variable to hold the mode value would
probably result in the proper code being generated since assignment of a
integer literal to a short does not need an explicit cast and if the
variable is is typed as an int, it would trigger the existing casting logic.
It is a bit of a kludge, but it might keep Jeroen rolling until I can look
at modifying the transform.  I don't think it is anything L3 specific, just
there are very few places in the Java binding where short parameters are
used.

Received on Tuesday, 14 January 2003 00:55:26 UTC