Java42 / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Help identify case of using wrong version of core library #643

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you try to run version 1.9 of the service-specific library (e.g. Calendar 
API library) with version 1.11 of the core google-api-client library you will 
get an error at run time that is difficult to understand.  Furthermore, since 
we currently do not check for binary compatibility even on minor updates, it is 
possible that 1.9.0-beta might not be compatible with 1.12.1-beta, and that the 
error might only occur at run time on certain use cases.  To be super safe, we 
should throw an IllegalStateException in the static constructor like this if 
you are running mismatching versions:

"You are currently running version 1.11.0-beta of google-api-client. You need 
version 1.12.0-beta to run against version 1.9.0-beta of the Google Calendar 
API library."

Original issue reported on code.google.com by yan...@google.com on 25 Oct 2012 at 6:32

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 26 Oct 2012 at 1:37

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 29 Oct 2012 at 1:30

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 29 Oct 2012 at 7:24