Skip to content

Conversation

manovotn
Copy link
Member

@manovotn manovotn commented Oct 1, 2024

Serves to get a full CI run on this.

This fix aims to keep how Weld was working previously but changing the superclass of extension-based annotated types to their actually classes.

}
} else {
this.superclass = classTransformer.getEnhancedAnnotatedType(Object.class, AnnotatedTypeIdentifier.NULL_BDA_ID);
// TODO do we need the try-catch block? Since the class comes from an extension, do we always have access to it superclasses?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am really not sure about this - we seemed to have been very deliberate in using Object as superclass here

Comment on lines +345 to +342
for (Annotation ann : method.getAnnotations()) {
result.put(ann.annotationType(), method);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not needed for the PR but fixes the inconsistency in the code - previously the collection of annotated methods only contained methods with certain annotations. This changes it to instead know about all annotated methods in given AT - which is what the API javadoc for EnhancedAnnotatedType#getEnhancedMethods(Class) states to begin with

@manovotn
Copy link
Member Author

manovotn commented Oct 2, 2024

Closing as these changes are now included in the original PR - #3055

@manovotn manovotn closed this Oct 2, 2024
@manovotn manovotn deleted the weld2798_v2 branch October 2, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant