diff options
author | Ian Rogers <irogers@google.com> | 2013-02-22 23:29:00 -0800 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2013-02-25 08:54:25 -0800 |
commit | 530f71c040cb1a7b946d5566d5a746f08f2d082c (patch) | |
tree | b350413f9cccdac06730518a9ad2eb7ef8a6f083 /test/044-proxy/expected.txt | |
parent | 5fe2c162a422426687ba3570df1dc68864386764 (diff) | |
download | art-530f71c040cb1a7b946d5566d5a746f08f2d082c.tar.gz art-530f71c040cb1a7b946d5566d5a746f08f2d082c.tar.bz2 art-530f71c040cb1a7b946d5566d5a746f08f2d082c.zip |
Fix proxy return ClassCastException and add test.
Add test for Bug: 8250775 that doesn't effect ART. Expand test case further.
ClassCastException has no constructor expecting a cause and so using this
creates a JNI failure. Switch to not using a wrapped exception as the wrapping
itself wasn't adding information.
Change-Id: I32dd541e1a1022089ec993fa4f4646042c5bf1fa
Diffstat (limited to 'test/044-proxy/expected.txt')
-rw-r--r-- | test/044-proxy/expected.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/044-proxy/expected.txt b/test/044-proxy/expected.txt index 578fd971f3..eafaf1d188 100644 --- a/test/044-proxy/expected.txt +++ b/test/044-proxy/expected.txt @@ -82,3 +82,11 @@ Got expected exception Invoke public abstract void InterfaceW1.bothThrowBase() throws BaseException,SubException,SubSubException (no args) Got expected exception +Proxy methods: [public final boolean $Proxy7.equals(java.lang.Object), public final java.lang.Object $Proxy7.foo(), public final java.lang.String $Proxy7.foo(), public final int $Proxy7.hashCode(), public final java.lang.String $Proxy7.toString()] +Invocation of public abstract java.lang.String NarrowingTest$I2.foo() +Invoking foo using I2 type: hello +Invocation of public abstract java.lang.Object NarrowingTest$I1.foo() +Invoking foo using I1 type: 1 +Invocation of public abstract java.lang.String NarrowingTest$I2.foo() +Got expected exception +Proxy narrowed invocation return type passed |