equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2018, 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. |
69 @Test |
69 @Test |
70 void testObsoleteSourceTarget() throws IOException { |
70 void testObsoleteSourceTarget() throws IOException { |
71 |
71 |
72 writeFile("C.java", "class C { }"); |
72 writeFile("C.java", "class C { }"); |
73 |
73 |
74 String[] opts = { "-source", "1.6", "-target", "1.6" }; |
74 String[] opts = { "-source", "1.7", "-target", "1.7" }; |
75 String[] files = { "C.java" }; |
75 String[] files = { "C.java" }; |
76 |
76 |
77 runMain(opts, files) |
77 runMain(opts, files) |
78 .checkOK() |
78 .checkOK() |
79 .checkLog("obsolete"); |
79 .checkLog("obsolete"); |