hotspot/test/runtime/SharedArchiveFile/ArchiveDoesNotExist.java
changeset 30123 7a8b6bd85e24
parent 26567 b8b544832bce
child 30146 a5809dde4617
equal deleted inserted replaced
30121:cc43664a0ad7 30123:7a8b6bd85e24
     1 /*
     1 /*
     2  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    34 import com.oracle.java.testlibrary.*;
    34 import com.oracle.java.testlibrary.*;
    35 import java.io.File;
    35 import java.io.File;
    36 
    36 
    37 public class ArchiveDoesNotExist {
    37 public class ArchiveDoesNotExist {
    38     public static void main(String[] args) throws Exception {
    38     public static void main(String[] args) throws Exception {
    39         String fileName = "test.jsa";
    39         String fileName = "ArchiveDoesNotExist.jsa";
    40 
    40 
    41         File cdsFile = new File(fileName);
    41         File cdsFile = new File(fileName);
    42         if (cdsFile.exists())
    42         if (cdsFile.exists())
    43             throw new RuntimeException("Test error: cds file already exists");
    43             throw new RuntimeException("Test error: cds file already exists");
    44 
    44