mirror of
https://github.com/apache/openjpa.git
synced 2025-02-13 13:36:13 +00:00
OPENJPA-1965: Check element type before casting in AnnotationProcessor6.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1085415 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
15dd5febf0
commit
f596829acb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user