openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r1084944 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
Date Thu, 24 Mar 2011 13:14:33 GMT
Author: ppoddar
Date: Thu Mar 24 13:14:33 2011
New Revision: 1084944

URL: http://svn.apache.org/viewvc?rev=1084944&view=rev
Log:
OPENJPA-1662: Save a runtime typecast. 

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java?rev=1084944&r1=1084943&r2=1084944&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
Thu Mar 24 13:14:33 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