Revert "Add test for proxy methods on default methods."
This reverts commit b6090e0dadf527c28cd79a1f825e7c3902f09335.
Change-Id: I7b239dabf8e95e53a32ad2f3c10cb284416bd4a8
diff --git a/luni/src/test/java/libcore/java/lang/reflect/ProxyTest.java b/luni/src/test/java/libcore/java/lang/reflect/ProxyTest.java
index 505c78a..abd5851 100644
--- a/luni/src/test/java/libcore/java/lang/reflect/ProxyTest.java
+++ b/luni/src/test/java/libcore/java/lang/reflect/ProxyTest.java
@@ -411,25 +411,4 @@
assertFalse(field.isAnnotationPresent(Deprecated.class));
}
}
-
- public interface DefaultMethod {
- static final Object DEFAULT_RETURN_VALUE = new Object();
- default Object test() {
- return DEFAULT_RETURN_VALUE;
- }
- }
-
- // Make sure we can proxy default methods.
- public void testProxyDefault() throws Exception {
- Object invocationHandlerReturnValue = new Object();
- // Just always return the different object.
- InvocationHandler handler = (o, m, oa) -> invocationHandlerReturnValue;
- DefaultMethod dm = (DefaultMethod) Proxy.newProxyInstance(
- Thread.currentThread().getContextClassLoader(),
- new Class[] { DefaultMethod.class },
- handler);
-
- assertTrue(dm != null);
- assertEquals(invocationHandlerReturnValue, dm.test());
- }
}