c25d9caa3b
* libjava.compile/PR13024.java: New file. * libjava.compile/PR13237.java: New file. From-SVN: r74157
19 lines
401 B
Java
19 lines
401 B
Java
import java.io.*;
|
|
import java.util.zip.*;
|
|
|
|
class PR13024 {
|
|
void isZipOrJarArchive(File file) throws IOException {
|
|
ZipFile zipFile = null;
|
|
|
|
try {
|
|
zipFile = new ZipFile(file);
|
|
} finally {
|
|
if (zipFile != null) {
|
|
try {
|
|
zipFile.close();
|
|
} catch (IOException ignored) {}
|
|
}
|
|
}
|
|
}
|
|
}
|