src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java
changeset 58465 ff45c1bf8129
parent 57842 abf6ee4c477c
child 58467 72ef2c0faf47
equal deleted inserted replaced
58462:c6f1226cfb72 58465:ff45c1bf8129
   136             if (isTrue(env, "create")) {
   136             if (isTrue(env, "create")) {
   137                 try (OutputStream os = Files.newOutputStream(zfpath, CREATE_NEW, WRITE)) {
   137                 try (OutputStream os = Files.newOutputStream(zfpath, CREATE_NEW, WRITE)) {
   138                     new END().write(os, 0, forceEnd64);
   138                     new END().write(os, 0, forceEnd64);
   139                 }
   139                 }
   140             } else {
   140             } else {
   141                 throw new FileSystemNotFoundException(zfpath.toString());
   141                 throw new NoSuchFileException(zfpath.toString());
   142             }
   142             }
   143         }
   143         }
   144         // sm and existence check
   144         // sm and existence check
   145         zfpath.getFileSystem().provider().checkAccess(zfpath, AccessMode.READ);
   145         zfpath.getFileSystem().provider().checkAccess(zfpath, AccessMode.READ);
   146         boolean writeable = AccessController.doPrivileged(
   146         boolean writeable = AccessController.doPrivileged(