Files
Bart van Helvertandintellij-monorepo-bot 8bf0a0dcd3 [java] Don't consider all enclosing classes in reflection access check
Only the first enclosing class needs to be passed. #IDEA-373584

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

13 lines
256 B
Java

class Constructors {
class X {
class Y {
Y() {}
Y(String a) {}
}
}
public void testConstructor() throws Exception {
X.Y.class.getDeclaredConstructor(X.class);
X.Y.class.getDeclaredConstructor(X.class, String.class);
}
}