Imagine we have, in the same JVM :
- API 1.0
- API 1.1
- an implementation bundle for the 1.0 version of the API
- an implementation bundle for the 1.1 version of the API
- a client imports API;version="1.0"
- a client imports API;version="1.1"

API 1.1 is NOT backward compatible with 1.0 (same classes but differences in methods signatures) In spite of the differences, both implementations share the same code base (based on v1.0); that is, implementation 1.1 extends (imports) common code from implementation 1.0 (we could move the common code to a separate bundle, but the problem remains)

The question is how do we avoid linkage errors? (and avoid duplicating the common code!) : the common code and 1.0 implementation are wired to API 1.0, but the 1.1 implementation will be wired to the 1.1 API AND to the 1.0 API (for the common code)

Any suggestion?

Thanks,
/Arjun

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to