
|
If you were logged in you would be able to see more operations.
|
|
|
|
Hey Costin,
I think the implementation of the method getImportedBundles() in class PackageAdminresolver is erroneous. In line 77 you retrieve the index of the second " in the definition of a required Bundle:
int secondQuoteIndex = entry.indexOf("\"", firstQuoteIndex);
The statement has to be
int secondQuoteIndex = entry.indexOf("\"", firstQuoteIndex + 1);
Otherwise secondQuoteIndex == firstQuoteIndex and version will always be "" !
The statement in line 81 is also erroneous:
Bundle requiredBundle = pa.getBundles(entries[i], version)[0];
The first parameter of pa.getBundle() must be the symbolic name of the required bundle. if entries[i] contains a version number (e.g. org.springframework.bundle.osgi.web;bundle-version="1.1.0"), the string has to be splitted so that only the symbolic name is set as the first parameter. In your code the whole string is set as the symbolic name (including the bundle-version directive).
|
|
Description
|
Hey Costin,
I think the implementation of the method getImportedBundles() in class PackageAdminresolver is erroneous. In line 77 you retrieve the index of the second " in the definition of a required Bundle:
int secondQuoteIndex = entry.indexOf("\"", firstQuoteIndex);
The statement has to be
int secondQuoteIndex = entry.indexOf("\"", firstQuoteIndex + 1);
Otherwise secondQuoteIndex == firstQuoteIndex and version will always be "" !
The statement in line 81 is also erroneous:
Bundle requiredBundle = pa.getBundles(entries[i], version)[0];
The first parameter of pa.getBundle() must be the symbolic name of the required bundle. if entries[i] contains a version number (e.g. org.springframework.bundle.osgi.web;bundle-version="1.1.0"), the string has to be splitted so that only the symbolic name is set as the first parameter. In your code the whole string is set as the symbolic name (including the bundle-version directive).
|
Show » |
|