disable closure folding on Java 8 as confusing
(cherry picked from commit 5b12890)