harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "li, shisheng (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6128) Incorrect constant processing in server mode
Date Thu, 26 Mar 2009 04:33:50 GMT
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;


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.

View raw message