-
Notifications
You must be signed in to change notification settings - Fork 286
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
WELD 2745 Restore proper getReference behavior from 5.1.0.Final and repair CreationalContextImpl destruction and releasing logic #2848
Conversation
(I see a failure with |
I followed https://github.com/weld/core#upgrading-weld-in-wildfly and https://github.com/weld/core#running-integration-tests-and-the-tck-on-wildfly and got:
I'll pause and wait for instructions. |
That's CDI TCK ext library - only needed for 3 (or 4?) specific TCK tests so not what's failing here.
And you're right that the
The test in question is WFLY-only (marked with Note that the problem could also be in some WFLY change since CI uses latest nigthly build (although it happens rarely). |
I'll also take a look at your proposal on Mon @ljnelson as I am not near my workstation now. |
With the updated instructions all tests pass on my machine using Wildfly 28.0.1.Final on my machine using |
The test failing here is definitely unrelated. Over the weekend dependabot created some dependency update PRs and they all fail with the same error. That's likely a WFLY change, I'm looking into that as well. |
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.
Added a few remarks.
The WFLY issue is being discussed elsewhere and the failing test can be ignored for now - if you want to see the whole CI run, feel free to mark that test with @Ignore
.
impl/src/main/java/org/jboss/weld/contexts/CreationalContextImpl.java
Outdated
Show resolved
Hide resolved
impl/src/main/java/org/jboss/weld/contexts/CreationalContextImpl.java
Outdated
Show resolved
Hide resolved
impl/src/main/java/org/jboss/weld/contexts/CreationalContextImpl.java
Outdated
Show resolved
Hide resolved
impl/src/main/java/org/jboss/weld/contexts/CreationalContextImpl.java
Outdated
Show resolved
Hide resolved
…epair CreationalContextImpl destruction and releasing logic Signed-off-by: Laird Nelson <[email protected]>
…and inside of synth beans' creational method
fc94da9
to
fbf16af
Compare
I've forced push into your branch @ljnelson:
|
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.
I am good with this PR, although I'd like to hear Martin's opinion as well.
Thanks for deep diving into this @ljnelson :)
Once merged, I'll probably consider an SP release so this gets out as fast as possible.
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.
I'm +0 for this change.
Pros:
- compatibility with older versions of Weld
- test coverage
Cons:
- stick to the behavior that is not defined by the spec; and does not make a lot of sense IMO
- even more complex code and
CC#destroyed
There were some bank holiday and then a PTO, hence my silence on this PR. Martin is right that the state isn't ideal and while I agree I would prefer not to create an extra empty parent CC in most cases, I think we might want to revisit this for some future release that's not a micro with just bug fixes. |
This PR:
createChildCc
parameter fromBeanManagerImpl#getReference
andCreationalContextImpl
whileDependentContextTest
to passReference: https://issues.redhat.com/browse/WELD-2745