Code Monkey home page Code Monkey logo

Comments (4)

cgruber avatar cgruber commented on August 20, 2024

So Dagger has no guarantee of being usable by other languages than Java, even if those languages have java-compatible layers, so this issue is out of scope. In particular, I don't know the subtleties that Kotlin has around field assignment at the byte-code level.

That said, based on your bug listed above, you said it seems to fail on fiend injection - I would use setter/method injection as a workaround. MembersInjector will assign using a setter if the setter is annotated with @Inject as opposed to the field.

from dagger.

damianpetla avatar damianpetla commented on August 20, 2024

I thought that it's not in the scope that's why I reported issue for Kotlin at the first place. I simply hoped that you can find a workaround for me and you did! Thank you. It works!

If I would be more experienced in Dagger I would probably figure it out myself 😄 but I am not. So thanks again!

from dagger.

cgruber avatar cgruber commented on August 20, 2024

:) No worries. I commented that way for completeness/clarity.

On Wed Dec 10 2014 at 11:18:37 AM Damian Petla [email protected]
wrote:

I thought that it's not in the scope that's why I reported issue for
Kotlin at the first place. I simply hoped that you can find a workaround
for me and you did! Thank you.

If I would be more experienced in Dagger I would probably figure it out
myself [image: 😄] but I am not. So thanks again!


Reply to this email directly or view it on GitHub
#92 (comment).

from dagger.

naixx avatar naixx commented on August 20, 2024

@cgruber Is there any magic, that Dagger processor has access to annotations in Kotlin code? Other annotation processing libraries don't have the same success.

from dagger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.