test/langtools/tools/javac/defaultMethodsVisibility/DefaultMethodsNotVisibleForSourceLessThan8Test.java
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. |
105 " }\n" + |
105 " }\n" + |
106 "}"; |
106 "}"; |
107 |
107 |
108 public static void main(String[] args) throws Exception { |
108 public static void main(String[] args) throws Exception { |
109 String[] sources = new String[] { |
109 String[] sources = new String[] { |
110 "1.6", |
|
111 "1.7", |
110 "1.7", |
112 }; |
111 }; |
113 for (String source : sources) { |
112 for (String source : sources) { |
114 new DefaultMethodsNotVisibleForSourceLessThan8Test().run(source); |
113 new DefaultMethodsNotVisibleForSourceLessThan8Test().run(source); |
115 } |
114 } |