Fixed problem with spirng and jdk1.8.0 compatibility