-
Notifications
You must be signed in to change notification settings - Fork 2k
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
2.12: Possible compilation error with @Binds #896
Comments
This unfortunately isn't enough information on it's own to be able to understand what the issue is. What's the type of the |
@ronshapiro I created a little project for you: https://github.com/Martin-Wegner/dagger2_issue896 Removing the Building with Maven works, only Eclipse produces the error. |
I don't have any way to test this with eclipse, but my guess is that there's a bug with Eclipse's When you build that sample project in eclipse, do you get the same generated code as you do with Maven, but the compilation fails? |
@ronshapiro I will test this tomorrow. Can you tell me please, if the The generated code is the same when using |
@ronshapiro the generated source is exactly the same (Maven and Eclipse). I tested it with Eclipse for Java developers Neon 3. |
Generated bad code for Eclipse:
Generated good code for Eclipse:
|
If the generated code is the same, you should file a bug with Eclipse. That code should work. |
Updating from 2.11 to 2.12 breaks my whole build.
This happens when using
@Binds
, but not with an identical@Provides
methodThis does not work anymore:
This works (using @provides instead of @BINDS):
This also works (removing @singleton from the view implementation):
The text was updated successfully, but these errors were encountered: