You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Main.java 355B

1234567891011121314151617
  1. public class Main {
  2. public static void main(String[] args) {
  3. try {
  4. doit();
  5. if (Trace.expectNoSuchMethodError) {
  6. throw new RuntimeException("expected NoSuchMethodError");
  7. }
  8. } catch (NoSuchMethodError e) {
  9. if (!Trace.expectNoSuchMethodError) throw e;
  10. }
  11. }
  12. private static void doit() {
  13. System.out.println("hello world");
  14. }
  15. }