test/tools/javac/T7093325.java

changeset 1520
5c956be64b9e
parent 1482
954541f13717
child 2034
ac6ec071c2b2
equal deleted inserted replaced
1519:97bd5e7151bc 1520:5c956be64b9e
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 /* 24 /*
25 * @test 25 * @test
26 * @bug 7093325 26 * @bug 7093325 8006694
27 * @summary Redundant entry in bytecode exception table 27 * @summary Redundant entry in bytecode exception table
28 * temporarily workaround combo tests are causing time out in several platforms
28 * @library lib 29 * @library lib
29 * @build JavacTestingAbstractThreadedTest 30 * @build JavacTestingAbstractThreadedTest
30 * @run main T7093325 31 * @run main/othervm T7093325
31 */ 32 */
33
34 // use /othervm to avoid jtreg timeout issues (CODETOOLS-7900047)
35 // see JDK-8006746
32 36
33 import java.io.File; 37 import java.io.File;
34 import java.net.URI; 38 import java.net.URI;
35 import java.util.Arrays; 39 import java.util.Arrays;
36 import javax.tools.JavaCompiler; 40 import javax.tools.JavaCompiler;
169 } 173 }
170 if (!lastInlined) { 174 if (!lastInlined) {
171 gapsCount++; 175 gapsCount++;
172 } 176 }
173 177
174 //System.out.printf("gaps %d \n %s \n", gapsCount, source.toString());
175
176 File compiledTest = new File(String.format("Test%s.class", id)); 178 File compiledTest = new File(String.format("Test%s.class", id));
177 try { 179 try {
178 ClassFile cf = ClassFile.read(compiledTest); 180 ClassFile cf = ClassFile.read(compiledTest);
179 if (cf == null) { 181 if (cf == null) {
180 throw new Error("Classfile not found: " + 182 throw new Error("Classfile not found: " +

mercurial