# HG changeset patch # User mcimadamore # Date 1493374011 -3600 # Node ID bc21e5ba6bf1538551093f57fa0f1a6571be05cc # Parent af62fa3a3a89b65349c4a2194806655910043e95 8178437: remove tools/javac/lambda/speculative/T8177933.java Summary: remove test from test folder and from problem list Reviewed-by: jlahoda diff -r af62fa3a3a89 -r bc21e5ba6bf1 test/ProblemList.txt --- a/test/ProblemList.txt Thu Apr 27 21:16:07 2017 +0000 +++ b/test/ProblemList.txt Fri Apr 28 11:06:51 2017 +0100 @@ -54,7 +54,6 @@ tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java 8057687 generic-all emit correct byte code an attributes for type annotations tools/javac/warnings/suppress/TypeAnnotations.java 8057683 generic-all improve ordering of errors with type annotations tools/javac/modules/T8159439/NPEForModuleInfoWithNonZeroSuperClassTest.java 8160396 generic-all current version of jtreg needs a new promotion to include lastes version of ASM -tools/javac/lambda/speculative/T8177933.java 8178437 generic-all intermittently fails due to stack randomization ########################################################################### # diff -r af62fa3a3a89 -r bc21e5ba6bf1 test/tools/javac/lambda/speculative/T8177933.java --- a/test/tools/javac/lambda/speculative/T8177933.java Thu Apr 27 21:16:07 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -/* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -/* - * @test - * @bug 8177933 - * @summary Stackoverflow during compilation, starting jdk-9+163 - * - * @library /tools/javac/lib - * @requires !(os.family == "solaris") - * @modules jdk.compiler/com.sun.tools.javac.api - * jdk.compiler/com.sun.tools.javac.code - * jdk.compiler/com.sun.tools.javac.comp - * jdk.compiler/com.sun.tools.javac.main - * jdk.compiler/com.sun.tools.javac.tree - * jdk.compiler/com.sun.tools.javac.util - * @build combo.ComboTestHelper - - * @run main/othervm -Xss512K T8177933 - */ - -import combo.ComboInstance; -import combo.ComboParameter; -import combo.ComboTask.Result; -import combo.ComboTestHelper; - -import javax.lang.model.element.Element; - -public class T8177933 extends ComboInstance { - - static final int MAX_DEPTH = 350; - - static class CallExpr implements ComboParameter { - @Override - public String expand(String optParameter) { - Integer n = Integer.parseInt(optParameter); - if (n == MAX_DEPTH) { - return "m()"; - } else { - return "m().#{CALL." + (n + 1) + "}"; - } - } - } - - static final String sourceTemplate = - "class Test {\n" + - " Test m() { return null; }\n" + - " void test() {\n" + - " #{CALL.0};\n" + - "} }\n"; - - public static void main(String[] args) { - new ComboTestHelper() - .withDimension("CALL", new CallExpr()) - .run(T8177933::new); - } - - @Override - protected void doWork() throws Throwable { - Result> result = newCompilationTask() - .withOption("-XDdev") - .withSourceFromTemplate(sourceTemplate) - .analyze(); - if (!result.get().iterator().hasNext()) { - fail("Exception occurred when compiling combo. " + result.compilationInfo()); - } - } -}