-
Notifications
You must be signed in to change notification settings - Fork 5
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
LangChain4JAIServicePortableExtension#processInjectionPoint should treat programmatic lookup differently #27
Comments
I've made the change on my branch and created the PR. #28 |
This issue is based on my conversation with @ehsavoie where the code I linked would sometimes identify the required type as |
Sounds like this issue does not exist in the repo. Shall we close this here @manovotn ? |
@Emily-Jiang Sorry I am not very familiar with this code base (or rather, not at all :)) but while my initial assumption was wrong, the code still looks a but weird.
The
|
Fair point @manovotn ! The |
This PR should resolve this.
|
@manovotn unfortunately the |
Ok, I stand corrected...and confused :) Now, I am not sure if this is intended behavior or a bug - it is in fact more practical this way as it allows you to observe dynamic resolution injection points explicitly but the specification doesn't seem to have much ground for it apart from saying that:
|
FTR, I have created a specification clarification issue which you can find under jakartaee/cdi#826 |
Closing this as we've discovered that this is a non-issue and code has been merged to the |
Following code is IMO wrong in how it treats programmatic lookup.
One valid type of injection point in CDI is
Instance<X>
. In this case, the aforementioned code should detect that and based on desired behavior either skip it or perform its logic on the innerX
type.Note that with an
Instance<X>
, you cannot be sure the user will actually attempt to resolve theX
at runtime; instead, they might performInstance#select()
and resolve a subtype instead or not use it at all.The text was updated successfully, but these errors were encountered: