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

In guice 4, overriding @Provides methods is not allowed #43

Closed
flavor8 opened this issue Dec 18, 2014 · 2 comments
Closed

In guice 4, overriding @Provides methods is not allowed #43

flavor8 opened this issue Dec 18, 2014 · 2 comments

Comments

@flavor8
Copy link

flavor8 commented Dec 18, 2014

Upgrade to guice 4 (to get around, e.g. google/guice#757) and you'll get this error:

! 1) Overriding @provides methods is not allowed.
! @provides method: com.sun.jersey.guice.JerseyServletModule.webApp()
! overridden by: com.hubspot.dropwizard.guice.JerseyContainerModule.webApp()
! at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:128)
!

@jhaber
Copy link
Member

jhaber commented Dec 18, 2014

Are you running version 0.7.1 or higher? This should be fixed by #38

@flavor8
Copy link
Author

flavor8 commented Dec 18, 2014

My bad, right enough

@flavor8 flavor8 closed this as completed Dec 18, 2014
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

No branches or pull requests

2 participants