-
Notifications
You must be signed in to change notification settings - Fork 3k
ArC - fix handling of disposed parameter qualifiers #1848
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
ArC - fix handling of disposed parameter qualifiers #1848
Conversation
mkouba
commented
Apr 3, 2019
- resolves NPE in io.quarkus:quarkus-maven-plugin:0.12.0:build #1839
@hwellmann Could you pls try this patch with your application? |
Testing with a local build of your branch, the original NPE no longer occurs, but now I'm getting a similar one related to producers:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@hwellmann Thanks. The other one is quite weird. Is your producer annotated with |
Almost: the class of the producer's return type is annotated (The producer method is |
} | ||
} | ||
|
||
Collection<AnnotationInstance> getDisposedParameteterQualifiers() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameteter -> Parameter
.collect(Collectors.toList()); | ||
} | ||
|
||
Type getDiposedParameterType() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diposed -> Disposed
@hwellmann Ok, I'll try to fix this case. But note that deltaspike will very likely not work on quarkus - it heavily relies on portable extensions that are not supported. |
Yes, I know that DeltaSpike won't work. I'm converting an existing project, and the first shot was just to add |
@hwellmann @manovotn Ok, one more fix added. If CI is green and you're satisfied we should merge this PR and eventually create a new issue (I do expect more corner cases like this ;-). |
Test successful. The stack trace no longer occurs. |
@hwellmann Thanks! |