Re: casting to a short

"Curt Arnold" <[email protected]>
Newsgroups gmane.comp.web.dom.test-suites.general
Message-ID <01c501c2bb91$85bb4590$a800a8c0@CurtMicron>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.