There’s a bug in the Guice grapher utility that causes most or all graphs to render corrupted. Is there a workaround or fix for this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I modified @wuppi’s answer slightly to also hide class paths and long random name annotations to make the graph much more compact and readable. His answer with edited code follows:
I find this utility method pretty useful and it never pritned incorrect graphs for me.
Regarding the
style=invisbug: The Guice grapher plugin generates a dot file, which styles some of the clases as invisible. ThereplaceAll()in the below posted method works around that. The rest of the code is nearly the same from the Guice example.I’ve incorporated Scot’s fix for Guice 4.x, which included Tim’s answer as well:
Of course you are free to generate any other Filename 🙂