You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "George Timoshenko (JIRA)" <ji...@apache.org> on 2006/11/28 12:07:22 UTC

[jira] Commented: (HARMONY-2259) [drlvm][jit][opt] tests.api.java.lang.reflect.ProxyTest fails on Jitrino.OPT while passes on Jitrino.JET

    [ http://issues.apache.org/jira/browse/HARMONY-2259?page=comments#action_12453878 ] 
            
George Timoshenko commented on HARMONY-2259:
--------------------------------------------

The testcase H2259 is made from ProxyTest.
The failure is the same in opt-, server, server-static modes.

Interesting thing: interpreter (-Xint) fails exactly the same(!)


The problem is (I've investigated OPT mode):

The 'invoke' method throws ArrayStoreException as it is supposed.
The 'string' method contains respective exception handler. It looks correct.
(I looked into compilation log files for these methods)

But the exception (it's type) is magically (i have not got this when walking through assembler at runtime) being transformed from ArrayStoreException to UndeclaredThrowableException.

Does anybody know something about this mechanism?

> [drlvm][jit][opt] tests.api.java.lang.reflect.ProxyTest fails on Jitrino.OPT while passes on Jitrino.JET
> --------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2259
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2259
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux/ia32
>            Reporter: Egor Pasko
>         Attachments: H2259.java
>
>
> $subj.
> shell> $HARMONY -Xem:jet -cp $classlib/depends/jars/junit_3.8.2/junit.jar:$classlib/modules/luni/bin/test:$classlib/deploy/build/test/support.jar junit.textui.TestRunner tests.api.java.lang.reflect.ProxyTest                                                        ....
> Time: 0.109
> OK (4 tests)
> shell> $HARMONY -Xem:opt -cp $classlib/depends/jars/junit_3.8.2/junit.jar:$classlib/modules/luni/bin/test:$classlib/deploy/build/test/support.jar junit.textui.TestRunner tests.api.java.lang.reflect.ProxyTest
> ..F..
> Time: 0.465
> There was 1 failure:
> 1) test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler(tests.api.java.lang.reflect.ProxyTest)junit.framework.AssertionFailedError: Problem converting exception
>         at tests.api.java.lang.reflect.ProxyTest.test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler(ProxyTest.java:145)
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> FAILURES!!!
> Tests run: 4,  Failures: 1,  Errors: 0

-- 
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