Skip to content

Commit a43b667

Browse files
committed
also test interface is hidden from reflection
1 parent 99cc98a commit a43b667

File tree

1 file changed

+6
-0
lines changed
  • instrumentation/internal/internal-reflection/javaagent-integration-tests/src/test/java

1 file changed

+6
-0
lines changed

instrumentation/internal/internal-reflection/javaagent-integration-tests/src/test/java/ReflectionTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ void testInjectedClassProxyUnwrap() throws Exception {
6666
.isNotEqualTo("__getIndyProxyDelegate");
6767
}
6868

69+
for (Class<?> interfaceType : helperType.getInterfaces()) {
70+
assertThat(interfaceType)
71+
.describedAs("indy proxy interface must be hidden from reflection")
72+
.isNotEqualTo(IndyProxy.class);
73+
}
74+
6975
assertThat(instance).isInstanceOf(IndyProxy.class);
7076

7177
Object proxyDelegate = ((IndyProxy) instance).__getIndyProxyDelegate();

0 commit comments

Comments
 (0)