Home | History | Annotate | Download | only in 060-reflection-security
      1 Setting SecurityManager.
      2 checkPermission: (java.security.SecurityPermission getProperty.package.access)
      3 checkPackageAccess: java.lang
      4 Running tests.
      5 
      6 getFields A
      7 checkMemberAccess: other.Blort, PUBLIC
      8 getFields B
      9 checkMemberAccess: other.Blort, PUBLIC
     10 java.lang.SecurityException: Denied!
     11 
     12 getDeclaredFields A
     13 checkMemberAccess: other.Blort, DECLARED
     14 checkPermission: (java.lang.RuntimePermission accessDeclaredMembers)
     15 getDeclaredFields B
     16 checkMemberAccess: other.Blort, DECLARED
     17 java.lang.SecurityException: Denied!
     18 
     19 getMethods A
     20 checkMemberAccess: other.Blort, PUBLIC
     21 getMethods B
     22 checkMemberAccess: other.Blort, PUBLIC
     23 java.lang.SecurityException: Denied!
     24 
     25 getDeclaredMethods A
     26 checkMemberAccess: other.Blort, DECLARED
     27 checkPermission: (java.lang.RuntimePermission accessDeclaredMembers)
     28 getDeclaredMethods B
     29 checkMemberAccess: other.Blort, DECLARED
     30 java.lang.SecurityException: Denied!
     31 
     32 getConstructors A
     33 checkMemberAccess: other.Blort, PUBLIC
     34 getConstructors B
     35 checkMemberAccess: other.Blort, PUBLIC
     36 java.lang.SecurityException: Denied!
     37 
     38 getDeclaredConstructors A
     39 checkMemberAccess: other.Blort, DECLARED
     40 checkPermission: (java.lang.RuntimePermission accessDeclaredMembers)
     41 getDeclaredConstructors B
     42 checkMemberAccess: other.Blort, DECLARED
     43 java.lang.SecurityException: Denied!
     44 
     45 getClasses A
     46 checkMemberAccess: other.Blort, PUBLIC
     47 getClasses B
     48 checkMemberAccess: other.Blort, PUBLIC
     49 java.lang.SecurityException: Denied!
     50 
     51 getDeclaredClasses A
     52 checkMemberAccess: other.Blort, DECLARED
     53 checkPermission: (java.lang.RuntimePermission accessDeclaredMembers)
     54 getDeclaredClasses B
     55 checkMemberAccess: other.Blort, DECLARED
     56 java.lang.SecurityException: Denied!
     57 
     58 Done!
     59