Fixes #4784: enforce the complete class_prefix (and not only its start) for reporting, as several may start with the same text