From 21e2d82e2c3df7890810d0645422aa7d3807efed Mon Sep 17 00:00:00 2001 From: Heath Thomann Date: Thu, 25 Aug 2011 02:24:15 +0000 Subject: [PATCH] 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 --- .../apache/openjpa/persistence/meta/AnnotationProcessor6.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java index 39b19b357..50e6aac91 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java @@ -204,7 +204,9 @@ public class AnnotationProcessor6 extends AbstractProcessor { if (active && !roundEnv.processingOver()) { Set elements = roundEnv.getRootElements(); for (Element e : elements) { - process((TypeElement) e); + if (e instanceof TypeElement) { + process((TypeElement) e); + } } } return true;