Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
With Guava 23, the public constructor for SimpleTimeLimiter, which was deprecated in Guava 22.0, has been removed. This constructor is used by JClouds' ExecutorServiceModule and by some tests.
Tests won't be compiled under Guava 23, so that's not a concern, but anyone running JClouds with Guava 23 will get a runtime error when ExecutorServiceModule is loaded.
Easiest fix is to use reflection to call SimpleTimeLimiter.create (introduced in Guava 22.0) if possible, and fall back to the constructor otherwise.
This was noticed after the resolution of JCLOUDS-1225, which brought compatibility to Guava 22.0.