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.sun.tools.javac.code.Symbol$TypeSymbol cannot be cast to
javax.lang.model.element.TypeElement
at
org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor$ContainsAttributeTypeVisitor.visitDeclared(JPAMetaModelEntityProcessor.java:313)
at
org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor$ContainsAttributeTypeVisitor.visitDeclared(JPAMetaModelEntityProcessor.java:293)
at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:731)
at
org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor.modelGenerationNeedsToBeDeferred(JPAMetaModelEntityProcessor.java:209)
at
org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor.createMetaModelClasses(JPAMetaModelEntityProcessor.java:178)
at
org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor.process(JPAMetaModelEntityProcessor.java:152)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:793)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:722)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1700(JavacProcessingEnvironment.java:97)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1029)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1163)
at
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1108)
at
com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
at com.sun.tools.javac.main.Main.compile(Main.java:439)
... 71 more
On 11/22/2013 05:08 PM, Gail Badner wrote:
> :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
> Regards,
> Gail
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/hibernate-dev