Split packages in plain java
问题 OSGi has a problem with split packages, i.e. same package but hosted in multiple bundles. Are there any edge cases that split packages might pose problems in plain java (without OSGi) ? Just curious. 回答1: For OSGi packages in different bundles are different, regardless of their name, because each bundle uses its own class loader. It is not a problem but a feature, to ensure encapsulation of bundles. So in plain Java this is normally not a problem, until you start using some framework that