jdk/src/java.naming/share/classes/com/sun/naming/internal/VersionHelper.java
changeset 44545 83b611b88ac8
parent 36511 9d0388c6b336
equal deleted inserted replaced
44480:2c33418a6d57 44545:83b611b88ac8
   174      * class (never null), or null if none can be found.
   174      * class (never null), or null if none can be found.
   175      */
   175      */
   176     InputStream getResourceAsStream(Class<?> c, String name) {
   176     InputStream getResourceAsStream(Class<?> c, String name) {
   177         PrivilegedAction<InputStream> act = () -> {
   177         PrivilegedAction<InputStream> act = () -> {
   178             try {
   178             try {
   179                 java.lang.reflect.Module m = c.getModule();
   179                 Module m = c.getModule();
   180                 return c.getModule().getResourceAsStream(resolveName(c,name));
   180                 return c.getModule().getResourceAsStream(resolveName(c,name));
   181              } catch (IOException x) {
   181              } catch (IOException x) {
   182                  return null;
   182                  return null;
   183              }
   183              }
   184         };
   184         };