harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Timoshenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1802) [drlvm][jit] Jitrino.OPT does not handle unresolved method parameters properly
Date Thu, 12 Oct 2006 10:47:37 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1802?page=comments#action_12441694 ] 
            
George Timoshenko commented on HARMONY-1802:
--------------------------------------------

I am sorry. The previous testcase is wrong.
Here is the good one:

====
public class TestExc { 

public static void main(String[] args) { 
    X x = new X();
    x.foo(false);
} 

} 


class X {

public void foo(boolean a) {
    try {
        if (a) {
            CustomE e = new CustomE();
            throw e;
        }
    } catch (CustomE e) {
        System.out.println(e.getMessage());
    }
}
}

class CustomE extends Exception {}

======

To reproduce the bug with exception type one should build debug version of jitrino. And not
forget to set '-Dvm.use_verifier=0' key.
Failure will be the following:

Assertion failed at line 305 of file /export/users2/gatimosh/HARMONY_SVN/trunk/working_vm/vm/jitrino/src/translator/java/JavaLabelPrepass.cpp


> [drlvm][jit] Jitrino.OPT does not handle unresolved method parameters properly
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-1802
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1802
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Mikhail Fursov
>
> Jitrino.OPT does not handle unresolved method parameters properly. Here is the testcase.
> compile this code:
> public class Test {
> public static void main(String[] args) {
> foo(null);
> }
> static void foo(X x) {}
> }
> class X {
> }
> delete X.class file and run the test with -Xem:opt cmdline option.
> The same problem occurs if class X is exception handler parameter.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message