openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1085415 - /openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
Date Fri, 25 Mar 2011 14:54:10 GMT
Author: curtisr7
Date: Fri Mar 25 14:54:10 2011
New Revision: 1085415

URL: http://svn.apache.org/viewvc?rev=1085415&view=rev
Log:
OPENJPA-1965: Check element type before casting in AnnotationProcessor6.

Modified:
    openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java

Modified: openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java?rev=1085415&r1=1085414&r2=1085415&view=diff
==============================================================================
--- openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
(original)
+++ openjpa/branches/2.1.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
Fri Mar 25 14:54:10 2011
@@ -204,7 +204,9 @@ public class AnnotationProcessor6 extend
         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;



Mime
View raw message