8262967: Improve Zip file support

Reviewed-by: ahgross, rhalade, aefimov
This commit is contained in:
Conor Cleary 2021-04-01 12:28:07 +00:00 committed by Henry Jen
parent e48af0069e
commit 0e6c01163f

View File

@ -226,6 +226,7 @@ public class ZipFile implements ZipConstants, Closeable {
Integer.toHexString(mode));
}
String name = file.getPath();
file = new File(name);
@SuppressWarnings("removal")
SecurityManager sm = System.getSecurityManager();
if (sm != null) {