Deprecated listeners throw warnings instead of errors.