langtools/test/tools/sjavac/HiddenFiles.java
changeset 35356 e919fd8db52c
parent 34991 ff8be37d1164
child 36526 3b41f1c69604
equal deleted inserted replaced
35355:817b3a285dbb 35356:e919fd8db52c
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2016, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    56         toolbox.writeJavaFiles(SRC, "package pkg; class B { }");
    56         toolbox.writeJavaFiles(SRC, "package pkg; class B { }");
    57 
    57 
    58         // This compilation should fail (return RC_FATAL) since A.java refers to B.java and B.java
    58         // This compilation should fail (return RC_FATAL) since A.java refers to B.java and B.java
    59         // is excluded.
    59         // is excluded.
    60         int rc = compile("-x", "pkg/B.java", SRC.toString(),
    60         int rc = compile("-x", "pkg/B.java", SRC.toString(),
    61                          "--server:portfile=testportfile,background=false",
       
    62                          "-d", BIN.toString(),
    61                          "-d", BIN.toString(),
    63                          "--state-dir=" + STATE_DIR);
    62                          "--state-dir=" + STATE_DIR);
    64 
    63 
    65         Assert.check(rc == Sjavac.RC_FATAL, "Compilation succeeded unexpectedly.");
    64         Assert.check(rc == Sjavac.RC_FATAL, "Compilation succeeded unexpectedly.");
    66     }
    65     }