1.1 --- a/test/ProblemList.txt Thu Apr 27 21:16:07 2017 +0000
1.2 +++ b/test/ProblemList.txt Fri Apr 28 11:06:51 2017 +0100
1.3 @@ -54,7 +54,6 @@
1.4 tools/javac/annotations/typeAnnotations/referenceinfos/NestedTypes.java 8057687 generic-all emit correct byte code an attributes for type annotations
1.5 tools/javac/warnings/suppress/TypeAnnotations.java 8057683 generic-all improve ordering of errors with type annotations
1.6 tools/javac/modules/T8159439/NPEForModuleInfoWithNonZeroSuperClassTest.java 8160396 generic-all current version of jtreg needs a new promotion to include lastes version of ASM
1.7 -tools/javac/lambda/speculative/T8177933.java 8178437 generic-all intermittently fails due to stack randomization
1.8
1.9 ###########################################################################
1.10 #
2.1 --- a/test/tools/javac/lambda/speculative/T8177933.java Thu Apr 27 21:16:07 2017 +0000
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,90 +0,0 @@
2.4 -/*
2.5 - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2.6 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2.7 - *
2.8 - * This code is free software; you can redistribute it and/or modify it
2.9 - * under the terms of the GNU General Public License version 2 only, as
2.10 - * published by the Free Software Foundation. Oracle designates this
2.11 - * particular file as subject to the "Classpath" exception as provided
2.12 - * by Oracle in the LICENSE file that accompanied this code.
2.13 - *
2.14 - * This code is distributed in the hope that it will be useful, but WITHOUT
2.15 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2.16 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2.17 - * version 2 for more details (a copy is included in the LICENSE file that
2.18 - * accompanied this code).
2.19 - *
2.20 - * You should have received a copy of the GNU General Public License version
2.21 - * 2 along with this work; if not, write to the Free Software Foundation,
2.22 - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2.23 - *
2.24 - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2.25 - * or visit www.oracle.com if you need additional information or have any
2.26 - * questions.
2.27 - */
2.28 -
2.29 -/*
2.30 - * @test
2.31 - * @bug 8177933
2.32 - * @summary Stackoverflow during compilation, starting jdk-9+163
2.33 - *
2.34 - * @library /tools/javac/lib
2.35 - * @requires !(os.family == "solaris")
2.36 - * @modules jdk.compiler/com.sun.tools.javac.api
2.37 - * jdk.compiler/com.sun.tools.javac.code
2.38 - * jdk.compiler/com.sun.tools.javac.comp
2.39 - * jdk.compiler/com.sun.tools.javac.main
2.40 - * jdk.compiler/com.sun.tools.javac.tree
2.41 - * jdk.compiler/com.sun.tools.javac.util
2.42 - * @build combo.ComboTestHelper
2.43 -
2.44 - * @run main/othervm -Xss512K T8177933
2.45 - */
2.46 -
2.47 -import combo.ComboInstance;
2.48 -import combo.ComboParameter;
2.49 -import combo.ComboTask.Result;
2.50 -import combo.ComboTestHelper;
2.51 -
2.52 -import javax.lang.model.element.Element;
2.53 -
2.54 -public class T8177933 extends ComboInstance<T8177933> {
2.55 -
2.56 - static final int MAX_DEPTH = 350;
2.57 -
2.58 - static class CallExpr implements ComboParameter {
2.59 - @Override
2.60 - public String expand(String optParameter) {
2.61 - Integer n = Integer.parseInt(optParameter);
2.62 - if (n == MAX_DEPTH) {
2.63 - return "m()";
2.64 - } else {
2.65 - return "m().#{CALL." + (n + 1) + "}";
2.66 - }
2.67 - }
2.68 - }
2.69 -
2.70 - static final String sourceTemplate =
2.71 - "class Test {\n" +
2.72 - " Test m() { return null; }\n" +
2.73 - " void test() {\n" +
2.74 - " #{CALL.0};\n" +
2.75 - "} }\n";
2.76 -
2.77 - public static void main(String[] args) {
2.78 - new ComboTestHelper<T8177933>()
2.79 - .withDimension("CALL", new CallExpr())
2.80 - .run(T8177933::new);
2.81 - }
2.82 -
2.83 - @Override
2.84 - protected void doWork() throws Throwable {
2.85 - Result<Iterable<? extends Element>> result = newCompilationTask()
2.86 - .withOption("-XDdev")
2.87 - .withSourceFromTemplate(sourceTemplate)
2.88 - .analyze();
2.89 - if (!result.get().iterator().hasNext()) {
2.90 - fail("Exception occurred when compiling combo. " + result.compilationInfo());
2.91 - }
2.92 - }
2.93 -}