< prev index next >

test/langtools/jdk/jshell/CompletionSuggestionTest.java

Print this page
rev 48744 : 8197439: Crash with -XDfind=lambda for anonymous class in anonymous class.
Summary: Ensuring unresolvable anonymous classes are attributed.
Reviewed-by: TBD

*** 21,31 **** * questions. */ /* * @test ! * @bug 8131025 8141092 8153761 8145263 8131019 8175886 8176184 8176241 8176110 8177466 * @summary Test Completion and Documentation * @library /tools/lib * @modules jdk.compiler/com.sun.tools.javac.api * jdk.compiler/com.sun.tools.javac.main * jdk.jdeps/com.sun.tools.javap --- 21,31 ---- * questions. */ /* * @test ! * @bug 8131025 8141092 8153761 8145263 8131019 8175886 8176184 8176241 8176110 8177466 8197439 * @summary Test Completion and Documentation * @library /tools/lib * @modules jdk.compiler/com.sun.tools.javac.api * jdk.compiler/com.sun.tools.javac.main * jdk.jdeps/com.sun.tools.javap
*** 659,668 **** --- 659,672 ---- assertCompletionIncludesExcludes("v.|", true, Set.of("run()", "length()"), Set.of()); assertCompletion("Runnable r = |", true, "v"); assertCompletion("CharSequence r = |", true); } + public void testCompletionInAnonymous() { + assertCompletionIncludesExcludes("new Undefined() { int i = \"\".l|", Set.of("length()"), Set.of()); + } + @BeforeMethod public void setUp() { super.setUp(); Path srcZip = Paths.get("src.zip");
< prev index next >