equal
deleted
inserted
replaced
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 } |