fix compile on error java 7