You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Feng Zhu (Jira)" <ji...@apache.org> on 2019/11/19 07:56:00 UTC

[jira] [Created] (CALCITE-3520) Type cast from primitive to box is not correct

Feng Zhu created CALCITE-3520:
---------------------------------

             Summary: Type cast from primitive to box is not correct
                 Key: CALCITE-3520
                 URL: https://issues.apache.org/jira/browse/CALCITE-3520
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.21.0
            Reporter: Feng Zhu
            Assignee: Feng Zhu


RexToLixTranslator provides type cast function as public interface to users.
However, some issues from primitive to box are covered by current codegen framework.
{code:java}
int x = ...
byte y = (byte)y
Byte.valueOf(y) // Compile error{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)