vipx / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

A fail fast mode to avoid multiple high cost failures populating a ProvisionException #728

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Description of the issue:

This is not a bug report but a feature request. 

The issue is covered in this StackOverflow link

http://stackoverflow.com/questions/12315877/is-there-a-way-to-get-guice-to-fail-
fast-during-guice-createinjector

I understand the merits of the current behaviour but have real world example 
where it is causing expense in resource utilisation. 

Original issue reported on code.google.com by simon.pe...@simaptech.com on 19 Sep 2012 at 7:22

GoogleCodeExporter commented 9 years ago
I would also love to see this feature implemented. Let me give you a little 
rationale:
1. I am using Guice + RoboGuice in Android
2. My users install applications by themselves and unfortunately they sometimes 
install old version over the new one which results in:

Error in custom provider, android.database.sqlite.SQLiteException: Can't 
downgrade database from version 10 to 5

Thing is I get this ... 527 times! Same exception because the SQLiteDatabase is 
the bean most frequently dependent on (either directly or indirectly).

3. This wouldn't be that much problem but I am using ACRA library to gather 
crash reports. A stack trace of this size is both killing the device and its 
GPRS data usage.

Original comment by lgaw...@gmail.com on 16 Feb 2013 at 7:33