-
Bug
-
Resolution: Unresolved
-
P4
-
17
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
When 1 unwrapped repeatable annotation or 2 wrapped repeatable annotations fail to compile during javac, annotation processors are still executed. The output is the same when one non repeatable annotation fails to compile.
But when 2 unwrapped repeatable annotations fail to compile during javac, no annotation processor is triggered at all. On big projects, since all generated classes are therefore missing, the javac compilation flood us with thousands of compilation failures instead of 2.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1- Clone https://github.com/reda-alaoui/repeatable-annotation-ap-general-failure
2- Checkout branch "2_unwrapped_repeatable_annotations"
3- Run "./mvnw clean package"
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
MyEntity_.java and OtherEntity_.java should have been generated in target/generated-sources/annotations/me/redaalaoui/repeatable_annotation_ap_general_failure
ACTUAL -
MyEntity_.java and OtherEntity_.java were not generated. Folder target/generated-sources/annotations is empty.
---------- BEGIN SOURCE ----------
https://github.com/reda-alaoui/repeatable-annotation-ap-general-failure
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Explicitly wrap the annotations in their annotation group.
FREQUENCY : always
When 1 unwrapped repeatable annotation or 2 wrapped repeatable annotations fail to compile during javac, annotation processors are still executed. The output is the same when one non repeatable annotation fails to compile.
But when 2 unwrapped repeatable annotations fail to compile during javac, no annotation processor is triggered at all. On big projects, since all generated classes are therefore missing, the javac compilation flood us with thousands of compilation failures instead of 2.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1- Clone https://github.com/reda-alaoui/repeatable-annotation-ap-general-failure
2- Checkout branch "2_unwrapped_repeatable_annotations"
3- Run "./mvnw clean package"
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
MyEntity_.java and OtherEntity_.java should have been generated in target/generated-sources/annotations/me/redaalaoui/repeatable_annotation_ap_general_failure
ACTUAL -
MyEntity_.java and OtherEntity_.java were not generated. Folder target/generated-sources/annotations is empty.
---------- BEGIN SOURCE ----------
https://github.com/reda-alaoui/repeatable-annotation-ap-general-failure
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Explicitly wrap the annotations in their annotation group.
FREQUENCY : always