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

Fixes #656, JAX-RS injection factory is racey #657

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

stuartwdouglas
Copy link
Member

No description provided.

@stuartwdouglas stuartwdouglas added this to the 0.8.0 milestone Jan 29, 2019
@stuartwdouglas stuartwdouglas added the kind/bug Something isn't working label Jan 29, 2019
feature.produce(new FeatureBuildItem(FeatureBuildItem.JAX_RS));
List<Function<Object, Object>> unwrappers = new ArrayList<>();
for (ProxyUnwrapperBuildItem i : proxyUnwrappers) {
unwrappers.add(i.getUnwrapper());
}
template.setupIntegration(beanContainerBuildItem.getValue(), unwrappers);

return new ServletInitParamBuildItem("resteasy.injector.factory", ShamrockInjectorFactory.class.getName());
Copy link
Member

Choose a reason for hiding this comment

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

There is a small change of behavior here as you now create this build item even if we don't find any application or resource.

I don't think it's an issue per se though but it resonates with a thought I had recently: currently if we want to bail out from a whole augmentation phase, we cannot do that easily (I have the same issue with Hibernate ORM, Validator, Search as if I don't have any entity/constraint/indexed entity I could bail out from the entire augmentation phase: it would be nice to have a nice way to bail out completely).

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. The main reason why I needed to produce this here it to make sure that the static is set up (the way the RESTeasy SPI is there is not really anything I can do except use a static).

I might just move it all into the one method

@stuartwdouglas stuartwdouglas merged commit 98cf5fc into quarkusio:master Jan 29, 2019
maxandersen added a commit to maxandersen/quarkus that referenced this pull request Nov 5, 2022
…t least try run located java. (quarkusio#657)

Co-authored-by: Max Rydahl Andersen <max@xam.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants