-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static weaving version mismatch #294
base: trunk
Are you sure you want to change the base?
Static weaving version mismatch #294
Conversation
914f9fb
to
1439a60
Compare
The version of the package and the version of the bundle are not usually synchronised. The version of the package would only be updated if the package contents had changed in a visible way. In this case I believe that 1.1.x probably is the correct package version.
I don’t believe that this matches the intended design for the weaving. My understanding is that the generated import should be extremely restricted so as to guarantee class space consistency with the weaver. |
So that means I should use the static weaving bundle version 1.1.x even though my bundle was built with the tool version 1.3.7 and there actually is a static weaving bundle version 1.3.7 available? |
This seems the more likely culprit, but you’ll need one of the current maintainers to confirm. |
1439a60
to
e1fc885
Compare
Ah, that also makes sense. I changed the PR to do that instead. Could you take another look? |
</goals> | ||
<configuration> | ||
<files> | ||
<file>../spi-fly-core/src/main/resources/org/apache/aries/spifly/packageinfo</file> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried using the ${parent.basedir}
placeholder to make the lookup dynamic but it seems placeholders are not supported here.
I was trying out the SPI Fly static weaving method but I ran into an issue: the processed bundle would declare a dependency on the
org.apache.aries.spifly
package with version specification[1.1.0,1.2.0)
(meaning1.1.x
is allowed).The static weaving tool I was using was at version 1.3.7 (the latest available) and I assumed the static weaving bundle should be at the same version. Since this is newer than 1.1.x, the dependency is never satisfied.
This PR ensures the
Export-Package
version of the static weaving bundle is read from the samepackageinfo
file that the tool uses for theImport-Package
instruction of the weaved bundle.