< prev index next >
jdk/test/java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java
Print this page
*** 61,72 ****
* @summary test that all fields returned by getDeclaredFields() can be
* set accessible if the right permission is granted; this test
* loads all the classes in the BCL, get their declared fields,
* and call setAccessible(false) followed by setAccessible(true);
* @modules java.base/jdk.internal.module
! * @run main/othervm -Djdk.launcher.addmods=ALL-SYSTEM FieldSetAccessibleTest UNSECURE
! * @run main/othervm -Djdk.launcher.addmods=ALL-SYSTEM FieldSetAccessibleTest SECURE
*
* @author danielfuchs
*/
public class FieldSetAccessibleTest {
--- 61,72 ----
* @summary test that all fields returned by getDeclaredFields() can be
* set accessible if the right permission is granted; this test
* loads all the classes in the BCL, get their declared fields,
* and call setAccessible(false) followed by setAccessible(true);
* @modules java.base/jdk.internal.module
! * @run main/othervm --add-modules=ALL-SYSTEM FieldSetAccessibleTest UNSECURE
! * @run main/othervm --add-modules=ALL-SYSTEM FieldSetAccessibleTest SECURE
*
* @author danielfuchs
*/
public class FieldSetAccessibleTest {
< prev index next >