Jira issue originally created by user @beberlei:
Say you have a class "Entity".
Then /*** @Entity **/ on a class in the same namespace will try to instantiate Entity.
We should avoid this by testing if Entity is a subclass of \Doctrine\Common\Annotations\Annotation
Comment created by @beberlei:
Actually this problem is more problematic, we have to enforce extending \Doctrine\Common\Annotations\Annotation for ALL annotations.
Issue was closed with resolution "Fixed"