author | robm |
Tue, 13 Sep 2016 14:47:29 +0100 | |
changeset 40938 | 5b0977acc842 |
parent 36778 | e04318f39f92 |
permissions | -rw-r--r-- |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
1 |
/* |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
2 |
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
4 |
* |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
8 |
* |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
13 |
* accompanied this code). |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
14 |
* |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
18 |
* |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
21 |
* questions. |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
22 |
*/ |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
23 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
24 |
/* |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
25 |
* @test |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
26 |
* @bug 8029240 8030855 |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
27 |
* @summary Default methods not always visible under -source 7 |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
28 |
* Default methods should be visible under source previous to 8 |
26100 | 29 |
* @library /tools/lib |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
26100
diff
changeset
|
30 |
* @modules jdk.compiler/com.sun.tools.javac.api |
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
26100
diff
changeset
|
31 |
* jdk.compiler/com.sun.tools.javac.main |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
32 |
* @build toolbox.ToolBox toolbox.JavacTask |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
33 |
* @run main DefaultMethodsNotVisibleForSourceLessThan8Test |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
34 |
*/ |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
35 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
36 |
import java.nio.file.Files; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
37 |
import java.nio.file.Paths; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
38 |
|
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
39 |
import toolbox.JavacTask; |
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
40 |
import toolbox.Task; |
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
41 |
import toolbox.ToolBox; |
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
42 |
|
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
43 |
public class DefaultMethodsNotVisibleForSourceLessThan8Test { |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
44 |
// common definitions |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
45 |
|
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
46 |
// this one should be compiled with source 8, the rest with source < 8 |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
47 |
static final String ISrc = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
48 |
"interface I {\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
49 |
" default void m() {}\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
50 |
"}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
51 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
52 |
static final String JSrc = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
53 |
"interface J extends I {}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
54 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
55 |
static final String ASrc = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
56 |
"abstract class A implements I {}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
57 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
58 |
static final String BSrc = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
59 |
"class B implements I {}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
60 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
61 |
// test legacy implementations |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
62 |
static final String C1Src = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
63 |
"class C1 implements I {\n" + |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
64 |
" public void m() {}\n" + |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
65 |
"}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
66 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
67 |
static final String C2Src = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
68 |
"class C2 implements J {\n" + |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
69 |
" public void m() {}\n" + |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
70 |
"}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
71 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
72 |
static final String C3Src = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
73 |
"class C3 extends A {\n" + |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
74 |
" public void m() {}\n" + |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
75 |
"}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
76 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
77 |
static final String C4Src = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
78 |
"class C4 extends B {\n" + |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
79 |
" public void m() {}\n" + |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
80 |
"}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
81 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
82 |
//test legacy invocations |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
83 |
static final String LegacyInvocationSrc = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
84 |
"class LegacyInvocation {\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
85 |
" public static void test(I i, J j, A a, B b) {\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
86 |
" i.m();\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
87 |
" j.m();\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
88 |
" a.m();\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
89 |
" b.m();\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
90 |
" }\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
91 |
"}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
92 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
93 |
//test case super invocations |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
94 |
static final String SubASrc = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
95 |
"class SubA extends A {\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
96 |
" public void test() {\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
97 |
" super.m();\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
98 |
" }\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
99 |
"}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
100 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
101 |
static final String SubBSrc = |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
102 |
"class SubB extends B {\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
103 |
" public void test() {\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
104 |
" super.m();\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
105 |
" }\n" + |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
106 |
"}"; |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
107 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
108 |
public static void main(String[] args) throws Exception { |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
109 |
String[] sources = new String[] { |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
110 |
"1.6", |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
111 |
"1.7", |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
112 |
}; |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
113 |
for (String source : sources) { |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
114 |
new DefaultMethodsNotVisibleForSourceLessThan8Test().run(source); |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
115 |
} |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
116 |
} |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
117 |
|
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
118 |
String outDir; |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
119 |
String source; |
26100 | 120 |
ToolBox tb = new ToolBox(); |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
121 |
|
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
122 |
void run(String source) throws Exception { |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
123 |
this.source = source; |
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
124 |
outDir = "out" + source.replace('.', '_'); |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
125 |
testsPreparation(); |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
126 |
testLegacyImplementations(); |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
127 |
testLegacyInvocations(); |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
128 |
testSuperInvocations(); |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
129 |
} |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
130 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
131 |
void testsPreparation() throws Exception { |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
132 |
Files.createDirectory(Paths.get(outDir)); |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
133 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
134 |
/* as an extra check let's make sure that interface 'I' can't be compiled |
23105
1d1ea26a10ae
8030855: Default methods should be visible under source previous to 8
vromero
parents:
22167
diff
changeset
|
135 |
* with source < 8 |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
136 |
*/ |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
137 |
new JavacTask(tb) |
26100 | 138 |
.outdir(outDir) |
139 |
.options("-source", source) |
|
140 |
.sources(ISrc) |
|
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
141 |
.run(Task.Expect.FAIL); |
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
142 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
143 |
//but it should compile with source >= 8 |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
144 |
new JavacTask(tb) |
26100 | 145 |
.outdir(outDir) |
146 |
.sources(ISrc) |
|
147 |
.run(); |
|
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
148 |
|
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
149 |
new JavacTask(tb) |
26100 | 150 |
.outdir(outDir) |
151 |
.classpath(outDir) |
|
152 |
.options("-source", source) |
|
153 |
.sources(JSrc, ASrc, BSrc) |
|
154 |
.run(); |
|
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
155 |
} |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
156 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
157 |
void testLegacyImplementations() throws Exception { |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
158 |
//compile C1-4 |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
159 |
new JavacTask(tb) |
26100 | 160 |
.outdir(outDir) |
161 |
.classpath(outDir) |
|
162 |
.options("-source", source) |
|
163 |
.sources(C1Src, C2Src, C3Src, C4Src) |
|
164 |
.run(); |
|
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
165 |
} |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
166 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
167 |
void testLegacyInvocations() throws Exception { |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
168 |
//compile LegacyInvocation |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
169 |
new JavacTask(tb) |
26100 | 170 |
.outdir(outDir) |
171 |
.classpath(outDir) |
|
172 |
.options("-source", source) |
|
173 |
.sources(LegacyInvocationSrc) |
|
174 |
.run(); |
|
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
175 |
} |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
176 |
|
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
177 |
void testSuperInvocations() throws Exception { |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
178 |
//compile SubA, SubB |
36778
e04318f39f92
8152897: refactor ToolBox to allow reduced documented dependencies
jjg
parents:
36526
diff
changeset
|
179 |
new JavacTask(tb) |
26100 | 180 |
.outdir(outDir) |
181 |
.classpath(outDir) |
|
182 |
.options("-source", source) |
|
183 |
.sources(SubASrc, SubBSrc) |
|
184 |
.run(); |
|
22167
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
185 |
} |
e0ba35f27975
8029240: Default methods not always visible under -source 7
vromero
parents:
diff
changeset
|
186 |
} |