mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8203277: preflow visitor used during lambda attribution shouldn't visit class definitions inside the lambda body
Reviewed-by: mcimadamore
This commit is contained in:
parent
9debae9783
commit
10da56f017
3 changed files with 59 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue