Skip to content
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

Temporary fix for challenged TCK test #5803

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Dec 12, 2020

This is to pass the current TCK. This has been challenged in jakartaee/platform-tck#585

This is to pass the current TCK.  This has been challenged in jakartaee/platform-tck#585
if (_dispatcherType == DispatcherType.ASYNC)
{
Object async = getAttribute(AsyncContext.ASYNC_MAPPING);
if (async != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to fall through to use the target mapping if this is null.
Should we skip the null check here and return (ServletPathMapping)async always.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is a mute point as the async mapping should never be null when the dispatch type is ASYNC... however, just in case I would prefer to return non null.

@gregw gregw merged commit 9edbd56 into jetty-10.0.x Dec 14, 2020
@gregw gregw deleted the jetty-10.0.x-tck-async-mapping branch December 14, 2020 14:12
gregw added a commit that referenced this pull request Jan 5, 2021
Revert temporary fix for challenged TCK test (#5803)
gregw added a commit that referenced this pull request Jan 27, 2021
TCK work around for #5803

Signed-off-by: Greg Wilkins <gregw@webtide.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants