Hi All, You may have noticed that Christian pushed out some new changes this weekend. We've been using these changes internally for a bit, and they're pretty nice.
The first<https://code.google.com/p/google-guice/source/detail?r=2e39ef748a1c4e4dcab506ccfcdb14ca6e01c9c6> one adds the list of modules involved with a binding into the error message. So, for example, a duplicate binding error would look like this: A binding to DuplicatedThing was already configured at ModuleA.configure(ModuleA.java:36) (via modules: ParentModule -> FooModule -> ModuleA) at ModuleA.configure(ModuleA.java:36) (via modules: ParentModule -> BarModule -> ModuleA) The second<https://code.google.com/p/google-guice/source/detail?r=ba5acdf7cf1eef418cfdb463991ff76e7f3ded28> one adds support for a "don't collect stack traces during startup" flag. For some of our bigger jobs, this has reduced startup speed by ~%20. The result of setting it is that most error messages won't include line numbers. This works nicely with the module-listings, and is a choice you'll have to make about how important the line numbers are to you. With the flag set, the above error message would instead look like: A binding to DuplicatedThing was already configured at ModuleA.configure(Unknown Source) (via modules: ParentModule -> FooModule -> ModuleA) at ModuleA.configure(Unknown Source) (via modules: ParentModule -> BarModule -> ModuleA) Give it a spin and let us know how it goes for you. Thanks! sam -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out.
