add permsize back for java 7