harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3716) [drlvm][jit][opt] Jitrino.OPT misses checkcast insts sometimes.
Date Fri, 20 Apr 2007 13:07:16 GMT
[drlvm][jit][opt] Jitrino.OPT misses checkcast insts sometimes.
---------------------------------------------------------------

                 Key: HARMONY-3716
                 URL: https://issues.apache.org/jira/browse/HARMONY-3716
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Mikhail Fursov


The test below passes with RI and Jitrino.JET but fails with OPT

public class Test {
    public static void main(String args[]) {
        foo(new Long(1));
    }

    static void foo(Number n) {
        try {
            failed((Integer)n);
        } catch (ClassCastException e) {}

        try {
            failed((Integer)n);
        } catch (ClassCastException e) {
            System.out.println("PASSED");
        }
    } 

    static void failed(Integer i) {
        System.out.println("FAILED");
    }
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message