From the book:
While we do use shallow reflection in this book, we try to avoid using deep reflection. Mark Reinhold defined these terms on the OpenJDK JPMS (JSR 376) Expert Group mailing list.
java.lang.reflect) without using setAccessible. Only public elements in exported packages can be accessed.setAccessible method to break into non-public elements. Any element, whether public or not, in any package, whether exported or not, can be accessed. Deep reflective access implies shallow reflective access.
0 comments