blob: bde4d09e962d7ecd85b04d78bf9b41931c42b9ad [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 desugaringwithmissingclasstest3;
public class Main {
public static void main(String[] args) throws Exception {
ImplementMethodsWithDefault instance = new ImplementMethodsWithDefault();
try {
String b = instance.getB();
if (b.equals("B")) {
System.out.println("OK");
} else {
System.out.println("NOT OK: " + b);
}
} catch (Throwable t) {
System.out.println("NOT OK " + t.getClass() + " " + t.getMessage());
t.printStackTrace();
}
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();
}
}
}