I started today on removing the separate calls to javac to execute
Annotation Processors in the Hibernate ORM build. From Gradle it is
working fine. However when I try to enable Annotation Processing in
IntelliJ, it complains about the "module cycle" between hibernate-core
and hibernate-testi
:hibernate-envers:compileTestJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':hibernate-envers:compileTestJava'.
> java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$TypeSymbol
> cannot be cast to javax.lang.model.element.TypeElement
This looks to be a bug in the JPA metamodel generator:
Caused by: java.lang.ClassCastException:
com.sun.tools.javac.code.Symbol$TypeSymbol cannot be cast to
javax.lang.model.element.TypeElement
at
org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor$ContainsAttributeTypeVisitor.visitDecla
Ah, I see. I applied metagen to tests in envers, not main. Seems an
odd error given that condition. Hardy?
I fixed my mistake.
On Fri 22 Nov 2013 06:39:06 PM CST, Steve Ebersole wrote:
> This looks to be a bug in the JPA metamodel generator:
>
> Caused by: java.lang.ClassCastException:
> com.