[ https://issues.apache.org/jira/browse/HARMONY-6128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Egor Pasko updated HARMONY-6128: -------------------------------- Summary: [drlvm][jit] Incorrect constant processing in server mode (was: Incorrect constant processing in server mode) > [drlvm][jit] Incorrect constant processing in server mode > --------------------------------------------------------- > > Key: HARMONY-6128 > URL: https://issues.apache.org/jira/browse/HARMONY-6128 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Windows XP > Reporter: li, shisheng > > To get it, just use the following java code: > public class xx > { > public static void main(String[] args) > { > long t = 1; > int it = (int)(long)(int)t; > long tt = 1L << 32; > System.out.println(tt); > } > } > Output of RI (both server and client mode) is : 4294967296 > Output of harmony (under client mode) is: 4294967296 > Output of harmony (under server mode) is: 1 (this should be wrong) > It is strange that you have to keep the first two statements inside function main, or you will get the correct output. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.