fix the inaccessible modifier error due to upgrade to java 7