Git Product home page Git Product logo

Comments (11)

codefromthecrypt avatar codefromthecrypt commented on April 28, 2024

I'm not great at javawriter, yet, so this might be a red herring.

It seems that JavaWriter.sourceReferenceForClassName or JavaWriter.isImported could be made aware of the types visible as they are a nested type in a super, using the canonical name in that case.

https://github.com/google/dagger/blob/master/compiler/src/main/java/dagger/internal/codegen/writer/JavaWriter.java#L249

from dagger.

codefromthecrypt avatar codefromthecrypt commented on April 28, 2024

I'm not sure I can unravel how to fix this quickly, so I've updated w/ a failing test in case someone else can.

from dagger.

JakeWharton avatar JakeWharton commented on April 28, 2024

Seems like the same or similar to
square/javapoet#77
On Jan 2, 2015 10:12 PM, "Adrian Cole" [email protected] wrote:

I'm not sure I can unravel how to fix this quickly, so I've updated w/ a
failing test in case someone else can.


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

from dagger.

codefromthecrypt avatar codefromthecrypt commented on April 28, 2024

Great! Ok I will try porting that fix.

I know dagger will move to normal javawriter, but a fix will help progress
until then.

from dagger.

codefromthecrypt avatar codefromthecrypt commented on April 28, 2024

port didn't dodge the issue. I've updated with simpler test cases which show at least 2 ways this can happen.

from dagger.

cgruber avatar cgruber commented on April 28, 2024

Good tests - it's been some time and the code has been re-written in places - can you try this with current snapshots and see if it's still failing?

from dagger.

codefromthecrypt avatar codefromthecrypt commented on April 28, 2024

sure

from dagger.

codefromthecrypt avatar codefromthecrypt commented on April 28, 2024

sorry to report that this is still the case.

from dagger.

gk5885 avatar gk5885 commented on April 28, 2024

Hey, sorry it took me a while to get to this. This looks really good. Thanks! A few nits here and there, but if we can get it fixed up, we can get it in for the ‡ release (real soon now!).

from dagger.

gk5885 avatar gk5885 commented on April 28, 2024

This has been languishing for faaaar too long. I will verify that this is either fixed and released or apply the fix.

from dagger.

netdpb avatar netdpb commented on April 28, 2024

Still broken at head.

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.