Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑一下我有两个具有相同符号名称但版本不同的 OSGi 包。两个包都导出相同的未版本化包(例如,my.package)。让 OSGi 保证将使用哪个包来提供包?(参考 OSGi 规范会很有帮助。)
my.package
不。
具有相同名称和相同版本的两个包被认为是等效的,因此选择哪个并不重要。因此 OSGi 可以自由选择。请参阅 OSGi 核心规范 R5,第 3.6.4 节。
不,除非版本化和非版本化包之间存在“使用”约束。