diff options
author | Elliott Hughes <enh@google.com> | 2012-03-21 16:56:56 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-03-21 16:57:43 -0700 |
commit | 2ed52c4419dd537c98cd7898bc8bdcf8826b8940 (patch) | |
tree | e90598e39df514d8a86cbb160288b4fd563eb1c1 /test/044-proxy | |
parent | 051c9fc1de07bbc265af38cf60f061394163c68f (diff) | |
download | art-2ed52c4419dd537c98cd7898bc8bdcf8826b8940.zip art-2ed52c4419dd537c98cd7898bc8bdcf8826b8940.tar.gz art-2ed52c4419dd537c98cd7898bc8bdcf8826b8940.tar.bz2 |
Stash the directly-implemented interfaces in Proxy so we can implement Class.getInterfaces.
Also extend test 044 to spot this (found by a libcore test).
Change-Id: I50019db49c549f045d94173c3ed9ae81f05ef858
Diffstat (limited to 'test/044-proxy')
-rw-r--r-- | test/044-proxy/expected.txt | 1 | ||||
-rw-r--r-- | test/044-proxy/src/BasicTest.java | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/044-proxy/expected.txt b/test/044-proxy/expected.txt index ddda58b..578fd97 100644 --- a/test/044-proxy/expected.txt +++ b/test/044-proxy/expected.txt @@ -49,6 +49,7 @@ Invoke public abstract void Shapes.upCheck() throws java.lang.InterruptedExcepti (no args) Got expected ie +Proxy interfaces: [interface Quads, interface Colors] Proxy methods: [public final java.lang.String $Proxy1.blob(), public final double $Proxy1.blue(int), public final R0a $Proxy1.checkMe(), public final R0aa $Proxy1.checkMe(), public final R0base $Proxy1.checkMe(), public final void $Proxy1.circle(int), public final boolean $Proxy1.equals(java.lang.Object), public final int $Proxy1.green(double), public final int $Proxy1.hashCode(), public final int $Proxy1.mauve(java.lang.String), public final int $Proxy1.rectangle(int,int), public final int $Proxy1.red(float), public final int $Proxy1.square(int,int), public final java.lang.String $Proxy1.toString(), public final int $Proxy1.trapezoid(int,double,int), public final void $Proxy1.upCheck() throws java.lang.InterruptedException, public final void $Proxy1.upChuck()] Decl annos: [] Param annos (0) : [] diff --git a/test/044-proxy/src/BasicTest.java b/test/044-proxy/src/BasicTest.java index 8f4d19e..46aa3fe 100644 --- a/test/044-proxy/src/BasicTest.java +++ b/test/044-proxy/src/BasicTest.java @@ -80,6 +80,8 @@ public class BasicTest { return o1.getReturnType().getName().compareTo(o2.getReturnType().getName()); } }); + System.out.println("Proxy interfaces: " + + Arrays.deepToString(proxy.getClass().getInterfaces())); System.out.println("Proxy methods: " + Arrays.deepToString(methods)); Method meth = methods[methods.length -1]; System.out.println("Decl annos: " + Arrays.deepToString(meth.getDeclaredAnnotations())); |