-
Notifications
You must be signed in to change notification settings - Fork 465
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
WFCORE-6347 Add ServiceDescriptor variants of OperationContext.hasOptionalCapability(...) and CapabilityServiceSupport.hasCapability(...) #5818
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@bstansberry The full integration test failures are due to a number of instances in wildfly full where the caller invokes OperationContext.hasOptionalCapability(...) with a null "dependent" parameter resulting in method signature ambiguity. The javadoc indicates that this is forbidden, but git blame indicates that this there was an intentional effort to temporarily allow a null dependent via https://issues.redhat.com/browse/WFCORE-900. |
@bstansberry Wondering if you had a moment to look at this. |
I don't see any need to continue to be permissive. In the WFCORE-900 description I was pretty clear that the contract (the javadoc) doesn't allow null, so that permissiveness can only be a temporary thing. That was in Aug 2015 when capabilities and requirements were really new and the bulk of the server didn't use them. So we needed flexibility to let us iterate toward doing it right. 8+ years later any code that isn't doing it right needs to be fixed and the permissiveness can go away. |
c47e261
to
d696e73
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
…ionalCapability(...) and CapabilityServiceSupport.hasCapability(...) for convenience.
…hasOptionalCapability(...). Add null parameter checks to prevent misuse.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@bstansberry FYI - the downstream conflicts have been resolved and this is ready for review. |
Thanks @pferraro |
… for convenience.
https://issues.redhat.com/browse/WFCORE-6691