Failed

org.eclipse.jdt.core.tests.compiler.parser.SelectionParserTest12.test022 - 13 (from org.eclipse.jdt.core.tests.compiler.parser.TestAll)

Failing for the past 36 builds (Since #383 )
Took 2 ms.

Error Message

invalid selection unit-X.java.
----------- Expected ------------
import org.eclipse.jdt.annotation.*;\n
import java.util.function.*;\n
interface IN0 {\n
}\n
interface IN1 extends IN0 {\n
}\n
interface IN2 extends IN0 {\n
}\n
public class X {\n
  public X() {\n
  }\n
  IN1 n_1(int ijk) {\n
  }\n
  IN2 n_2() {\n
  }\n
  <M>void m(Supplier<M> m2) {\n
  }\n
  void testSw(int ijk) {\n
    m(switch (ijk) {\n
default ->\n
 () -> n_1(<SelectOnName:ijk>);\n
});\n
  }\n
}\n

------------ but was ------------
import org.eclipse.jdt.annotation.*;\n
import java.util.function.*;\n
interface IN0 {\n
}\n
interface IN1 extends IN0 {\n
}\n
interface IN2 extends IN0 {\n
}\n
public class X {\n
  public X() {\n
  }\n
  IN1 n_1(int ijk) {\n
  }\n
  IN2 n_2() {\n
  }\n
  <M>void m(Supplier<M> m2) {\n
  }\n
  void testSw(int ijk) {\n
    m(switch (ijk) {\n
default ->\n
    yield () -> n_1(<SelectOnName:ijk>);\n
});\n
  }\n
}\n

--------- Difference is ----------
 expected:<...) {\n
default ->\n
 []() -> n_1(<SelectOnN...> but was:<...) {\n
default ->\n
 [   yield ]() -> n_1(<SelectOnN...>

Stacktrace

junit.framework.ComparisonFailure: 
invalid selection unit-X.java.
----------- Expected ------------
import org.eclipse.jdt.annotation.*;\n
import java.util.function.*;\n
interface IN0 {\n
}\n
interface IN1 extends IN0 {\n
}\n
interface IN2 extends IN0 {\n
}\n
public class X {\n
  public X() {\n
  }\n
  IN1 n_1(int ijk) {\n
  }\n
  IN2 n_2() {\n
  }\n
  <M>void m(Supplier<M> m2) {\n
  }\n
  void testSw(int ijk) {\n
    m(switch (ijk) {\n
default ->\n
 () -> n_1(<SelectOnName:ijk>);\n
});\n
  }\n
}\n

------------ but was ------------
import org.eclipse.jdt.annotation.*;\n
import java.util.function.*;\n
interface IN0 {\n
}\n
interface IN1 extends IN0 {\n
}\n
interface IN2 extends IN0 {\n
}\n
public class X {\n
  public X() {\n
  }\n
  IN1 n_1(int ijk) {\n
  }\n
  IN2 n_2() {\n
  }\n
  <M>void m(Supplier<M> m2) {\n
  }\n
  void testSw(int ijk) {\n
    m(switch (ijk) {\n
default ->\n
    yield () -> n_1(<SelectOnName:ijk>);\n
});\n
  }\n
}\n

--------- Difference is ----------
 expected:<...) {\n
default ->\n
 []() -> n_1(<SelectOnN...> but was:<...) {\n
default ->\n
 [   yield ]() -> n_1(<SelectOnN...>
	at org.eclipse.jdt.core.tests.compiler.parser.SelectionParserTest12.test022(SelectionParserTest12.java:1067)

Standard Output

		"import org.eclipse.jdt.annotation.*;\n" + 
		"import java.util.function.*;\n" + 
		"interface IN0 {\n" + 
		"}\n" + 
		"interface IN1 extends IN0 {\n" + 
		"}\n" + 
		"interface IN2 extends IN0 {\n" + 
		"}\n" + 
		"public class X {\n" + 
		"  public X() {\n" + 
		"  }\n" + 
		"  IN1 n_1(int ijk) {\n" + 
		"  }\n" + 
		"  IN2 n_2() {\n" + 
		"  }\n" + 
		"  <M>void m(Supplier<M> m2) {\n" + 
		"  }\n" + 
		"  void testSw(int ijk) {\n" + 
		"    m(switch (ijk) {\n" + 
		"default ->\n" + 
		"    yield () -> n_1(<SelectOnName:ijk>);\n" + 
		"});\n" + 
		"  }\n" + 
		"}\n"