Files
Bart van Helvertandintellij-monorepo-bot 4653916f22 [java] Don't expect enclosing type for methods in reflection access check
#IDEA-373584

GitOrigin-RevId: bd4b1007b5c215038766f4c3934a7dde7fcae244
2025-06-18 15:10:58 +00:00

11 lines
225 B
Java

class Constructors {
class X {
void foo() { }
void bar(String a) { }
}
public void testMethod() throws Exception {
X.class.getDeclaredMethod("foo");
X.class.getDeclaredMethod("bar", String.class);
}
}