test/langtools/tools/javac/defaultMethods/static/hiding/InterfaceMethodHidingTest.java
changeset 47350 d65c3b21081c
parent 47216 71c04702a3d5
--- a/test/langtools/tools/javac/defaultMethods/static/hiding/InterfaceMethodHidingTest.java	Mon Oct 16 18:15:41 2017 +0530
+++ b/test/langtools/tools/javac/defaultMethods/static/hiding/InterfaceMethodHidingTest.java	Fri Sep 01 14:04:20 2017 +0200
@@ -154,10 +154,10 @@
 
     @Override
     public void doWork() throws IOException {
-        check(newCompilationTask()
+        newCompilationTask()
                 .withOption("-XDallowStaticInterfaceMethods")
                 .withSourceFromTemplate(template, this::returnExpr)
-                .analyze());
+                .analyze(this::check);
     }
 
     ComboParameter returnExpr(String name) {