migrator / guava-libraries-2

Guava: Google Core Libraries for Java 1.6+
0 stars 0 forks source link

EventBus.LoggingSubscriberExceptionHandler drops an exception #44

Open migrator opened 10 years ago

migrator commented 10 years ago

The handleException() method on the LoggingSubscriberExceptionHandler is called with exception.getCause(). This is fine - it returns the target exception of the InvocationTargetException. However, the handleException() method logs this failure with exception.getCause() which than skips one exception.

A simple workaround is to provide an own SubscriberExceptionHandler.

Guava version 18.

relevance: 2

migrator commented 10 years ago

summary: Not Defined

Good catch. It looks like this is already fixed in some changes to EventBus for Guava 19, but we may need to consider an 18.0.1 release for this.

status Not Defined creator: cgdecker@google.com created at: Sep 3, 2014