test/langtools/tools/javac/api/TestGetScopeResult.java
changeset 52697 605878cd4009
parent 51103 cecc2e10edf4
child 58906 d58a21542c04
equal deleted inserted replaced
52696:b80549fdb52f 52697:605878cd4009
   132 
   132 
   133         doTest("class Test { void test() { cand((var s, t) -> \"\"); } void cand(I i) { } interface I { public String test(String s); }  }",
   133         doTest("class Test { void test() { cand((var s, t) -> \"\"); } void cand(I i) { } interface I { public String test(String s); }  }",
   134                implicitExplicitConflict1);
   134                implicitExplicitConflict1);
   135 
   135 
   136         String[] implicitExplicitConflict2 = {
   136         String[] implicitExplicitConflict2 = {
   137             "s:<any>",
   137             "s:none",
   138             ":t",
   138             ":t",
   139             "super:java.lang.Object",
   139             "super:java.lang.Object",
   140             "this:Test"
   140             "this:Test"
   141         };
   141         };
   142 
   142 
   177             }.scan(cut, null);
   177             }.scan(cut, null);
   178 
   178 
   179             List<String> expectedList = List.of(expected);
   179             List<String> expectedList = List.of(expected);
   180 
   180 
   181             if (!expectedList.equals(actual)) {
   181             if (!expectedList.equals(actual)) {
   182                 throw new IllegalStateException("Unexpected scope content: " + actual);
   182                 throw new IllegalStateException("Unexpected scope content: " + actual + "\n" +
       
   183                                                  "expected: " + expectedList);
   183             }
   184             }
   184         }
   185         }
   185     }
   186     }
   186 
   187 
   187     void testAnalyzerDisabled() throws IOException {
   188     void testAnalyzerDisabled() throws IOException {