Backward compatibility for Java v < 1.8