src/java.base/share/classes/sun/security/provider/PolicyFile.java
changeset 48080 18a4438eb690
parent 47478 438e0c9f2f17
child 48757 8cc67294ec56
equal deleted inserted replaced
48079:eaa406097d93 48080:18a4438eb690
   510                         if (init(policy_url, newInfo, false)) {
   510                         if (init(policy_url, newInfo, false)) {
   511                             loaded_policy = true;
   511                             loaded_policy = true;
   512                         }
   512                         }
   513                     } catch (Exception e) {
   513                     } catch (Exception e) {
   514                         if (debug != null) {
   514                         if (debug != null) {
   515                             debug.println("error reading policy "+e);
   515                             debug.println(
       
   516                                 "Debug info only. Error reading policy " +e);
   516                             e.printStackTrace();
   517                             e.printStackTrace();
   517                         }
   518                         }
   518                         // ignore that policy
   519                         // ignore that policy
   519                     }
   520                     }
   520                     n++;
   521                     n++;
   557                                 pp.getStorePassURL(),
   558                                 pp.getStorePassURL(),
   558                                 debug);
   559                                 debug);
   559             } catch (Exception e) {
   560             } catch (Exception e) {
   560                 // ignore, treat it like we have no keystore
   561                 // ignore, treat it like we have no keystore
   561                 if (debug != null) {
   562                 if (debug != null) {
       
   563                     debug.println("Debug info only. Ignoring exception.");
   562                     e.printStackTrace();
   564                     e.printStackTrace();
   563                 }
   565                 }
   564             }
   566             }
   565 
   567 
   566             Enumeration<PolicyParser.GrantEntry> enum_ = pp.grantElements();
   568             Enumeration<PolicyParser.GrantEntry> enum_ = pp.grantElements();