blob: bde4d09e962d7ecd85b04d78bf9b41931c42b9ad [file] [log] [blame]
Yohann Roussel390942c2017-09-06 15:28:39 +02001// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4package desugaringwithmissingclasstest3;
5
6public class Main {
7 public static void main(String[] args) throws Exception {
8 ImplementMethodsWithDefault instance = new ImplementMethodsWithDefault();
9 try {
10 String b = instance.getB();
11 if (b.equals("B")) {
12 System.out.println("OK");
13 } else {
14 System.out.println("NOT OK: " + b);
15 }
16 } catch (Throwable t) {
17 System.out.println("NOT OK " + t.getClass() + " " + t.getMessage());
18 t.printStackTrace();
19 }
20 try {
21 String foo = instance.foo();
22 if (foo.equals("ImplementMethodsWithDefault")) {
23 System.out.println("OK");
24 } else {
25 System.out.println("NOT OK: " + foo);
26 }
27 } catch (Throwable t) {
28 System.out.println("NOT OK " + t.getClass() + " " + t.getMessage());
29 t.printStackTrace();
30 }
31 }
32}