blob: e439c5c3f204b7e6f021c5df1054bca9f31ec23e [file] [log] [blame]
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package desugaringwithmissingclasstest4;
public class Main {
public static void main(String[] args) throws Exception {
ImplementMethodsWithDefault instance = new ImplementMethodsWithDefault();
try {
String foo = instance.foo();
if (foo.equals("ImplementMethodsWithDefault")) {
System.out.println("OK");
} else {
System.out.println("NOT OK: " + foo);
}
} catch (Throwable t) {
System.out.println("NOT OK " + t.getClass() + " " + t.getMessage());
t.printStackTrace();
}
try {
String foo = instance.foo2();
if (foo.equals("C2")) {
System.out.println("OK");
} else {
System.out.println("NOT OK: " + foo);
}
} catch (Throwable t) {
System.out.println("NOT OK " + t.getClass() + " " + t.getMessage());
t.printStackTrace();
}
}
}