I wanted to file this as a JIRA issue, but I always get a permission error when
trying to create a ticket, so I’m posting it here instead.
Example
Abstract base class implementing the interface:
public abstract class AbstractGeneration<T extends Annotation> implements BeforeExecutionGenerator, AnnotationBasedGenerator<T> {
@Override
public void initialize(T annotation, GeneratorCreationContext context) {
// ...
}
}
Concrete generator referenced by a @ValueGenerationType annotation:
public class ConcreteFieldGeneration extends AbstractGeneration<CustomAnnotation> {
// does NOT declare "implements AnnotationBasedGenerator<CustomAnnotation>"
}
This looks like a bug to me. The code should also be checking the interfaces of all the super classes of the AnnotationBasedGenerator. That code should probably use GenericsHelper.typeArguments(AnnotationBasedGenerator.class, annotationBased.getClass()) instead to determine the type variable assignment.
A pull request with an accompanying test is very much appreciated. For details about how you can make Jira work for you, take a look into these discussion mentioned here: Request for Jira issue creation permission (Hibernate ORM)
You are probably logged into another Jira organization’s account. Can you please click on your profile picture in the top-right and show us what’s there?
Alright, clicking account icon → Login does help. Another annoying thing is that the banner is displayed only after you do that . While you are authenticated, but before clicking that another Login thing, the banner is not displayed .
With https://hibernate.atlassian.net/jira/for-you and my personal account (not the company account), it worked that way I was able to join and then create an issue → Jira. That didn’t work on the last attempt. Thanks