class Test { void foo(Object o) { try { Runnable r = () -> { System.out.println(o); }; } catch (Throwable e) {} } }