8178437: remove tools/javac/lambda/speculative/T8177933.java
Remove test from test folder and from problem list Reviewed-by: jlahoda
This commit is contained in:
parent
56d5dc8e7e
commit
6758f48244
langtools/test
@ -54,7 +54,6 @@ tools/javac/annotations/typeAnnotations/referenceinfos/Lambda.java
|
||||
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
|
||||
|
||||
###########################################################################
|
||||
#
|
||||
|
@ -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<T8177933> {
|
||||
|
||||
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<T8177933>()
|
||||
.withDimension("CALL", new CallExpr())
|
||||
.run(T8177933::new);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doWork() throws Throwable {
|
||||
Result<Iterable<? extends Element>> result = newCompilationTask()
|
||||
.withOption("-XDdev")
|
||||
.withSourceFromTemplate(sourceTemplate)
|
||||
.analyze();
|
||||
if (!result.get().iterator().hasNext()) {
|
||||
fail("Exception occurred when compiling combo. " + result.compilationInfo());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user