[hibernate-dev] Build failure buiding envers

Steve Ebersole steve at hibernate.org
Fri Nov 22 19:39:06 EST 2013


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev



More information about the hibernate-dev mailing list