8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /* @test
25 * @bug 4770745 6234507 6303183 8048990
26 * @summary test a variety of zip file entries
27 * @author Martin Buchholz
28 */
29
30 import java.util.*;
31 import java.util.zip.*;
32 import java.util.jar.*;
33 import java.io.*;
34
35 public class Assortment {
36 static int passed = 0, failed = 0;
37
38 static void fail(String msg) {
39 failed++;
40 new Exception(msg).printStackTrace();
41 }
42
43 static void unexpected(Throwable t) {
44 failed++;
45 t.printStackTrace();
46 }
47
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /* @test
25 * @bug 4770745 6234507 6303183 8048990
26 * @summary test a variety of zip file entries
27 * @author Martin Buchholz
28 * @key randomness
29 */
30
31 import java.util.*;
32 import java.util.zip.*;
33 import java.util.jar.*;
34 import java.io.*;
35
36 public class Assortment {
37 static int passed = 0, failed = 0;
38
39 static void fail(String msg) {
40 failed++;
41 new Exception(msg).printStackTrace();
42 }
43
44 static void unexpected(Throwable t) {
45 failed++;
46 t.printStackTrace();
47 }
48
|