void (String[] args) { long i; do { i = System.currentTimeMillis() + 1; } while (i < 3); Runnable r = () -> { System.out.println(<error descr="Variable used in lambda expression should be final or effectively final">i</error>); // <–ref an non final var }; System.exit(0); }