javaTools:fix permgen object bugs.