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

Create ServiceHolderImpl with correct service implementation type #4100

Closed
wants to merge 1 commit into from

Conversation

chkal
Copy link
Contributor

@chkal chkal commented Apr 13, 2019

As described in #4099, ServiceHolder#getImplementationClass() sometimes doesn't return the actual implementation class of the service, but org.glassfish.jersey.inject.hk2.InstanceSupplierFactoryBridge instead. This leads to the situation that Jersey looks for @Priority annotations on the wrong type (detailed description in #4099).

This change fixes the underlying problem and ordering via @Priority works fine now. Unforunately I wasn't able to reproduce the issue in an integration test. I guess that's because HK2 behaves differently when deploying a real app to Glassfish.

Signed-off-by: Christian Kaltepoth <christian@kaltepoth.de>
@chkal
Copy link
Contributor Author

chkal commented Apr 14, 2019

Sorry, this first to fix the issue broke some tests. I guess it won't work this way. Sorry for the noise.

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.

1 participant