-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cucumber-cdi2 ClassCastException on unmanaged instances #2242
Comments
dcendents
changed the title
cucumber-cdi ClassCastException on unmanaged instances
cucumber-cdi2 ClassCastException on unmanaged instances
Feb 25, 2021
Fix proposal looks good, do you plan to do a PR? |
mpkorstanje
added a commit
that referenced
this issue
Feb 27, 2021
mpkorstanje
added a commit
that referenced
this issue
Feb 27, 2021
mpkorstanje
added a commit
that referenced
this issue
Feb 27, 2021
mpkorstanje
added a commit
that referenced
this issue
Feb 28, 2021
This was referenced Mar 9, 2021
Merged
This was referenced Mar 15, 2021
Merged
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
cucumber-cdi2 ClassCastException on unmanaged instances
To Reproduce
Steps to reproduce the behavior:
Expected behavior
CDI to load the Step class correctly.
Your Environment
Additional context
When an instance is unsatisfied, it is created manually (Unmanaged.UnmanagedInstance value).
The UnmanagedInstance wrapper is then added to standaloneInstances.
The second time, the Unmanaged.UnmanagedInstance object is retrived from the map and directly cast into the given type and fails.
I suppose a call to get() is missing (
return type.cast(instance.get());
)The text was updated successfully, but these errors were encountered: