quarkus: Duplicate annotation for class: interface io.smallrye.common.annotation.CheckReturnValue
Describe the bug
Expected behavior
No response
Actual behavior
Caused by: java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface io.smallrye.common.annotation.CheckReturnValue: @io.smallrye.common.annotation.CheckReturnValue()
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:126)
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73)
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:625)
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:623)
at java.base/java.lang.reflect.Executable.getAnnotation(Executable.java:591)
at java.base/java.lang.reflect.Method.getAnnotation(Method.java:738)
at java.base/java.lang.reflect.AnnotatedElement.isAnnotationPresent(AnnotatedElement.java:292)
at java.base/java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:518)
at org.hibernate.annotations.common.reflection.java.JavaAnnotationReader.isAnnotationPresent(JavaAnnotationReader.java:33)
at org.hibernate.annotations.common.reflection.java.JavaXAnnotatedElement.isAnnotationPresent(JavaXAnnotatedElement.java:43)
at org.hibernate.annotations.common.reflection.java.JavaXMember.isAnnotationPresent(JavaXMember.java:26)
at org.hibernate.jpa.event.internal.CallbackDefinitionResolverLegacyImpl.resolveEntityCallbacks(CallbackDefinitionResolverLegacyImpl.java:55)
at org.hibernate.boot.model.internal.EntityBinder.bindCallbacks(EntityBinder.java:1091)
at org.hibernate.boot.model.internal.EntityBinder.bindEntityClass(EntityBinder.java:244)
at org.hibernate.boot.model.internal.AnnotationBinder.bindClass(AnnotationBinder.java:417)
at org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.processEntityHierarchies(AnnotationMetadataSourceProcessorImpl.java:255)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.processEntityHierarchies(MetadataBuildingProcess.java:275)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:318)
at io.quarkus.hibernate.orm.runtime.boot.FastBootMetadataBuilder.build(FastBootMetadataBuilder.java:406)
at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.createMetadata(PersistenceUnitsHolder.java:101)
at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.constructMetadataAdvance(PersistenceUnitsHolder.java:73)
at io.quarkus.hibernate.orm.runtime.PersistenceUnitsHolder.initializeJpa(PersistenceUnitsHolder.java:40)
at io.quarkus.hibernate.orm.runtime.HibernateOrmRecorder$1.created(HibernateOrmRecorder.java:78)
at io.quarkus.arc.runtime.ArcRecorder.initBeanContainer(ArcRecorder.java:79)
at io.quarkus.deployment.steps.ArcProcessor$generateResources844392269.deploy_0(Unknown Source)
at io.quarkus.deployment.steps.ArcProcessor$generateResources844392269.deploy(Unknown Source)
... 16 more
How to Reproduce?
No response
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 25 (16 by maintainers)
Commits related to this issue
- Properly add @CheckReturnValue * We don't add it if it's already there * We don't run the transformation twice Fixes: #35715 — committed to geoand/quarkus by geoand 9 months ago
- Properly add @CheckReturnValue * We don't add it if it's already there * We don't run the transformation twice Fixes: #35715 — committed to geoand/quarkus by geoand 9 months ago
- Merge pull request #36038 from geoand/#35715 Properly add @CheckReturnValue — committed to quarkusio/quarkus by geoand 9 months ago
- Properly add @CheckReturnValue * We don't add it if it's already there * We don't run the transformation twice Fixes: #35715 (cherry picked from commit 88f0f1c60738cfd0504c6f40a41bc9e10fc76af0) — committed to gsmet/quarkus by geoand 9 months ago
Turns out the problem was easy enough to fix: #36038