child.toString()+" cannot override "+parent.toString()+"; overridden method is static", child.getSourceLocation(),null);
WeaverMessages.format(WeaverMessages.ITD_OVERRIDDEN_STATIC,child,parent), child.getSourceLocation(),null);
	public boolean checkLegalOverride(ResolvedMember parent, ResolvedMember child) {		//System.err.println("check: " + child.getDeclaringType() + " overrides " + parent.getDeclaringType());		if (!parent.getReturnType().equals(child.getReturnType())) {			world.showMessage(IMessage.ERROR,				"can't override " + parent +				" with " + child + " return types don't match",				child.getSourceLocation(), parent.getSourceLocation());			return false;		}				if (parent.getKind() == Member.POINTCUT) {			TypeX[] pTypes = parent.getParameterTypes();			TypeX[] cTypes = child.getParameterTypes();			if (!Arrays.equals(pTypes, cTypes)) {				world.showMessage(IMessage.ERROR,					"can't override " + parent +					" with " + child + " parameter types don't match",					child.getSourceLocation(), parent.getSourceLocation());				return false;			}		}				//System.err.println("check: " + child.getModifiers() + " more visible " + parent.getModifiers());		if (isMoreVisible(parent.getModifiers(), child.getModifiers())) {			world.showMessage(IMessage.ERROR,				"can't override " + parent +				" with " + child + " visibility is reduced",				child.getSourceLocation(), parent.getSourceLocation());			return false;		}				// check declared exceptions		ResolvedTypeX[] childExceptions = world.resolve(child.getExceptions());		ResolvedTypeX[] parentExceptions = world.resolve(parent.getExceptions());		ResolvedTypeX runtimeException = world.resolve("java.lang.RuntimeException");		ResolvedTypeX error = world.resolve("java.lang.Error");				outer: for (int i=0, leni = childExceptions.length; i < leni; i++) {			//System.err.println("checking: " + childExceptions[i]);			if (runtimeException.isAssignableFrom(childExceptions[i])) continue;			if (error.isAssignableFrom(childExceptions[i])) continue;						for (int j = 0, lenj = parentExceptions.length; j < lenj; j++) {				if (parentExceptions[j].isAssignableFrom(childExceptions[i])) continue outer;			}						world.showMessage(IMessage.ERROR, "overriden method doesn't throw " 					+ childExceptions[i].getName(), child.getSourceLocation(), null);									return false;		}		if (parent.isStatic() && !child.isStatic()) {			world.showMessage(IMessage.ERROR,			  child.toString()+" cannot override "+parent.toString()+"; overridden method is static",			  child.getSourceLocation(),null);		} else if (child.isStatic() && !parent.isStatic()) {			world.showMessage(IMessage.ERROR,			  child.toString()+" cannot override "+parent.toString()+"; overriding method is static",			  child.getSourceLocation(),null);		}		return true;			}