OPENJPA-1965: Back ported Rick's 2.1.x changes to 2.0.x

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1161363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Heath Thomann 2011-08-25 02:24:15 +00:00
parent 1d2d1ff953
commit 21e2d82e2c
1 changed files with 3 additions and 1 deletions

View File

@ -204,7 +204,9 @@ public class AnnotationProcessor6 extends AbstractProcessor {
if (active && !roundEnv.processingOver()) {
Set<? extends Element> elements = roundEnv.getRootElements();
for (Element e : elements) {
process((TypeElement) e);
if (e instanceof TypeElement) {
process((TypeElement) e);
}
}
}
return true;