Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: "Required class information missing" when old org.jboss:jandex parses pgjdbc classes #2010

Merged
merged 1 commit into from Jan 10, 2021

Conversation

vlsi
Copy link
Member

@vlsi vlsi commented Jan 3, 2021

Fixes #2008

Note: @NonNull is a default mode, so the annotations were not really needed.

TL;DR: jandex fails to parse T extends @AnyAnnotaion SomeInterface because it is compiled to T::LSomeInterface; signature attribute in the class file.
If an annotation is really needed, then something like T extends @AnyAnnotation Object & @AnyAnnotation SomeInterface could workaround the issue in theory because it would be compiled to T:Ljava/lang/Object;:LSomeInterface;.

@davecramer
Copy link
Member

@vlsi thx! it failed one test, is that an issue ?

@vlsi vlsi changed the title fix: "Required class information missing" when old org.wildfly:jandex parses pgjdbc classes fix: "Required class information missing" when old org.jboss:jandex parses pgjdbc classes Jan 4, 2021
@vlsi
Copy link
Member Author

vlsi commented Jan 10, 2021

Ok, it looks like this is ready provided CI completes successfully.

@vlsi vlsi force-pushed the wa_type_annotations branch 2 times, most recently from 74efc79 to 9bdf402 Compare January 10, 2021 18:59
@vlsi vlsi merged commit 2df6c97 into pgjdbc:release/42.2 Jan 10, 2021
@vlsi vlsi deleted the wa_type_annotations branch January 10, 2021 20:27
vlsi added a commit that referenced this pull request Jan 10, 2021
vlsi referenced this pull request in ben-manes/caffeine Jan 18, 2021
@vlsi
Copy link
Member Author

vlsi commented Jan 18, 2021

@NonNull was helpful for readability: <T extends Object> might look like a redundancy (https://checkerframework.org/manual/#faq-implicit-bounds), so we might want to restore it as jandex issues are resolved.

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.

None yet

3 participants