Fixed a bug in javaassit manipulation of methods