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 /*
25 * @test
26 * @bug 8071474
27 * @summary Better failure atomicity for default read object.
28 * @modules jdk.compiler
29 * @library /test/lib
30 * @compile FailureAtomicity.java SerialRef.java
31 * @run main failureAtomicity.FailureAtomicity
32 */
33
34 package failureAtomicity;
35
36 import java.io.ByteArrayInputStream;
37 import java.io.ByteArrayOutputStream;
38 import java.io.File;
39 import java.io.IOException;
40 import java.io.InputStream;
41 import java.io.ObjectInputStream;
42 import java.io.ObjectOutputStream;
43 import java.io.ObjectStreamClass;
44 import java.io.UncheckedIOException;
45 import java.lang.reflect.Constructor;
46 import java.net.URL;
47 import java.net.URLClassLoader;
48 import java.nio.file.Files;
49 import java.nio.file.Path;
|
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 /*
25 * @test
26 * @bug 8071474
27 * @summary Better failure atomicity for default read object.
28 * @modules jdk.compiler
29 * @library /test/lib
30 * @build jdk.test.lib.util.FileUtils
31 * jdk.test.lib.Utils
32 * jdk.test.lib.Asserts
33 * jdk.test.lib.JDKToolFinder
34 * jdk.test.lib.JDKToolLauncher
35 * jdk.test.lib.Platform
36 * jdk.test.lib.process.*
37 * @compile FailureAtomicity.java SerialRef.java
38 * @run main failureAtomicity.FailureAtomicity
39 */
40
41 package failureAtomicity;
42
43 import java.io.ByteArrayInputStream;
44 import java.io.ByteArrayOutputStream;
45 import java.io.File;
46 import java.io.IOException;
47 import java.io.InputStream;
48 import java.io.ObjectInputStream;
49 import java.io.ObjectOutputStream;
50 import java.io.ObjectStreamClass;
51 import java.io.UncheckedIOException;
52 import java.lang.reflect.Constructor;
53 import java.net.URL;
54 import java.net.URLClassLoader;
55 import java.nio.file.Files;
56 import java.nio.file.Path;
|