equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
25 * @test |
25 * @test |
26 * @bug 6945418 6993978 |
26 * @bug 6945418 6993978 8006694 |
27 * @summary Project Coin: Simplified Varargs Method Invocation |
27 * @summary Project Coin: Simplified Varargs Method Invocation |
|
28 * temporarily workaround combo tests are causing time out in several platforms |
28 * @author mcimadamore |
29 * @author mcimadamore |
29 * @library ../../lib |
30 * @library ../../lib |
30 * @build JavacTestingAbstractThreadedTest |
31 * @build JavacTestingAbstractThreadedTest |
31 * @run main Warn4 |
32 * @run main/othervm Warn4 |
32 */ |
33 */ |
|
34 |
|
35 // use /othervm to avoid jtreg timeout issues (CODETOOLS-7900047) |
|
36 // see JDK-8006746 |
33 |
37 |
34 import java.net.URI; |
38 import java.net.URI; |
35 import java.util.Arrays; |
39 import java.util.Arrays; |
36 import java.util.Set; |
40 import java.util.Set; |
37 import java.util.HashSet; |
41 import java.util.HashSet; |
236 void check(JavaSource source, boolean[] warnArr) { |
240 void check(JavaSource source, boolean[] warnArr) { |
237 boolean badOutput = false; |
241 boolean badOutput = false; |
238 for (Warning wkind : Warning.values()) { |
242 for (Warning wkind : Warning.values()) { |
239 boolean isSuppressed = wkind.isSuppressed(trustMe, sourceLevel, |
243 boolean isSuppressed = wkind.isSuppressed(trustMe, sourceLevel, |
240 suppressLevelClient, suppressLevelDecl, modKind); |
244 suppressLevelClient, suppressLevelDecl, modKind); |
241 System.out.println("SUPPRESSED = " + isSuppressed); |
|
242 badOutput |= (warnArr[wkind.ordinal()] && !isSuppressed) != |
245 badOutput |= (warnArr[wkind.ordinal()] && !isSuppressed) != |
243 diagChecker.warnings.contains(wkind); |
246 diagChecker.warnings.contains(wkind); |
244 } |
247 } |
245 if (badOutput) { |
248 if (badOutput) { |
246 throw new Error("invalid diagnostics for source:\n" + |
249 throw new Error("invalid diagnostics for source:\n" + |