class Test { void test(Object obj) { try { System.out.println((MyUnresolvedClass)obj); System.out.println("hello"); } catch (Exception e) { throw new RuntimeException(e); } } }