922N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 922N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 922N/A * This code is free software; you can redistribute it and/or modify it 922N/A * under the terms of the GNU General Public License version 2 only, as 922N/A * published by the Free Software Foundation. 922N/A * This code is distributed in the hope that it will be useful, but WITHOUT 922N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 922N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 922N/A * version 2 for more details (a copy is included in the LICENSE file that 922N/A * accompanied this code). 922N/A * You should have received a copy of the GNU General Public License version 922N/A * 2 along with this work; if not, write to the Free Software Foundation, 922N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 922N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 922N/A * or visit www.oracle.com if you need additional information or have any 935N/A * @summary JavacFileManager handling of zip64 archives (Scenario A and B) 935N/A * This test consists of two scenarios: 935N/A * Scenario A: create a jar with entries exceeding 64K, and see if the javac 935N/A * can handle this large jar on the classpath. Generally this test completes 935N/A * Scenario B: create a jar with a large enough file exceeding 4GB, and 935N/A * similarly test javac. This test is known to be slow and problematic on 935N/A * certain operating systems, thus this test can be selected by passing a 935N/A * property through jtreg as follows: 935N/A * -javaoptions=-DT6836682.testScenarioB=true. 935N/A * Note this test will only run iff all the disk requirements are met at runtime. 922N/A private static final long GIGA =
1024 *
1024 *
1024;
922N/A // deleted to prevent accidental linkage 922N/A // deleted to prevent accidental linkage 922N/A // a jar with entries exceeding 64k + a class file for the existential test 922N/A // a jar with an enormous file + a class file for the existential test 935N/A " requirements exceeds available space");