Revision: 15dbe7831cdb
Author: Sam Berlin <[email protected]>
Date: Sun May 27 10:40:27 2012
Log: Change AssertionError to use the whole ProvisionException as a
cause, so we can see exactly what goes wrong when nothing should go wrong.
Revision created by MOE tool push_codebase.
MOE_MIGRATION=4876
http://code.google.com/p/google-guice/source/detail?r=15dbe7831cdb
Modified:
/extensions/throwingproviders/src/com/google/inject/throwingproviders/ThrowingProviderBinder.java
=======================================
---
/extensions/throwingproviders/src/com/google/inject/throwingproviders/ThrowingProviderBinder.java
Sun May 27 10:39:59 2012
+++
/extensions/throwingproviders/src/com/google/inject/throwingproviders/ThrowingProviderBinder.java
Sun May 27 10:40:27 2012
@@ -222,7 +222,7 @@
} else if (pe.getCause() instanceof Error) {
throw (Error) pe.getCause();
} else {
- throw new AssertionError(pe.getCause()); // Impossible!
+ throw new AssertionError(pe); // Impossible!
}
}
}
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.