[ http://issues.apache.org/jira/browse/HARMONY-2259?page=comments#action_12454885 ] George Timoshenko commented on HARMONY-2259: -------------------------------------------- Huh it was really interesting. this "magic" method: "/$Proxy0::string" has 4 exception catchers and 2 exception handlers: 1 java/lang/Error HANDLER_1 2 java/lang/RuntimeException HANDLER_1 3 SubException HANDLER_1 4 java/lang/Throwable HANDLER_2 HANDLER_1 - just rethrows an exception HANDLER_2 creates UndeclaredThrowableException and throws it the problem was that CodeSelector of Jitrino::OPT transformed this "picture" and in CG we had: 1.SubException HANDLER_1 2 java/lang/Throwable HANDLER_2 The patch is being prepared > [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