8203277: preflow visitor used during lambda attribution shouldn't visit class definitions inside the lambda body

Reviewed-by: mcimadamore
This commit is contained in:
Vicente Romero 2018-11-27 11:07:44 -05:00
parent 9debae9783
commit 10da56f017
3 changed files with 59 additions and 2 deletions

View file

@ -134,7 +134,7 @@ public class TestGetScopeResult {
implicitExplicitConflict1);
String[] implicitExplicitConflict2 = {
"s:<any>",
"s:none",
":t",
"super:java.lang.Object",
"this:Test"
@ -179,7 +179,8 @@ public class TestGetScopeResult {
List<String> expectedList = List.of(expected);
if (!expectedList.equals(actual)) {
throw new IllegalStateException("Unexpected scope content: " + actual);
throw new IllegalStateException("Unexpected scope content: " + actual + "\n" +
"expected: " + expectedList);
}
}
}