bndtools/bnd — Issue #112: Generate provider import ranges automatically
Author: njbartlett
Created: 2011-11-17 12:38:54+00:00
State: open

When we depend on a package version 1.0, the import range is always generated as [1.0,2), but for providers the range should be [1.0,1.1). Currently we must indicate that we are a provider of the API by exporting it with "provide:=true" or customising the import-package statement.

During bytecode inspection we should be able to determine automatically whether we are a provider or a consumer of the API, without requiring additional hints like "provide:=true". Additionally the range should be influenced by the presence of @ProviderType and @ConsumerType annotations.