You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "li, shisheng (JIRA)" <ji...@apache.org> on 2009/03/26 05:33:50 UTC
[jira] Created: (HARMONY-6128) Incorrect constant processing in
server mode
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.
[jira] Updated: (HARMONY-6128) [drlvm][jit] Incorrect constant
processing in server mode
Posted by "Egor Pasko (JIRA)" <ji...@apache.org>.
[ 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.