Community
Participate
Eclipse IDE
In OSGi R3 the Bundle-Version header was not interpreted by the Framework. R3 bundles should be able to have any value for Bundle-Version an not fail to install. Currently the framework implementation fails with a NumberFormatException.
Created attachment 26429 [details] Proposed fix for 3.1.1
Pascal, please review fix for the 3.1.1 maintenance branch. Thanks.
The patch caches a bogus value for the Bundle-Version which prevents the user to get the real value. An idea to get around this is to subclass Version to be able to store the original information.
Created attachment 26550 [details] Improved fix This fix will return the correct Bundle-Version header from Bundle.getHeaders.
Patch reviewd, good to go.
Fixed in HEAD and 3.1 maintenance branch.