-
Notifications
You must be signed in to change notification settings - Fork 84
OSGi joda import does not allow joda upgrade #34
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
Comments
I think that would make sense, and can change the declaration. |
... but it looks like I'd need some help in figuring out how to actually change this. |
Ok I will try to provide you a pull request with an update of on this Romain |
That would be great! |
Hi, I have tried to upgrade from joda time 2.2 to 2.4 by editing the pom. I feel a bit irresponsible doing this :) Do you maybe have an idea why those tests are failing? |
@rolanddb I could use some help on OSGi manifest (as per above). But I am not able to reproduce the issues you see locally. I tried with Joda 2.4, and using both JDK 7 and 8, but tests for both pass. This is on MacOS FWTW. |
@cowtowncoder Sorry I am not very knowledgable on OSGi. I did not modify the manifest manually, I only changed the pom.xml. Maven updated the joda-time version in the manifest. I understand that you had bad experiences before with this process. I'll monitor how it goes, so far it seems to work fine. I updated the joda-time artifact to 2.4, and then the manifest looks like this. Import-Package: com.fasterxml.jackson.annotation;version="[2.4.0,2.5)",c My only problem was those two failing tests. |
Hi all, Thanks, |
@rolanddb Could you share fail message or line numbers for fails you see? I am just hoping to see what could explain the differences here. @rgilles I am not sure what you mean by parents' pom here. |
When I'm talking about what I have to do; I'm not talking about the issue with joda 2.4 and the jdk. I'm just talking about issues in maven-bundle-plugin configuration. Romain |
@rgilles No problem, did not mean to rush you -- I just ask questions whenever I notice something I don't understand because otherwise I'll forget to ask. I am not expecting to get all the answers right away. :) |
No problem, I will try to give you an explanation of the issue before the push. |
Failed tests: testDateMidnightSerWithTypeInfo(com.fasterxml.jackson.datatype.joda.JodaSerializationTest): null expected:<...Midnight","2001-05-2[5]"]> but was:<...Midnight","2001-05-2[4]"]> Both in JodaSerializationTest. Both relate to the deprecated class DateMidnight. |
* change the `osgi.versionpolicy` to generate version range import from a given major.minor.micro to the next major. By the way this is the default bnd lib behavior. * remove extract version property in the export statement as it is just the default bnd lib behavior and therefore does not add value except make it explicit * remove the `osgi.import` properties has the default bnd lib behavior provide exactly the same and also ensure that the import statement will be always in sync with the dependency usage.
Fix issue #34: OSGI import statement version range management
The tests still fail on my Mac same lines.
|
I've got same issue with failing tests for DateMidnightSerializer Maven version
I've installed latest tzdata
Print TimeZone.getDefault() to System.out
|
Ok; at this point this issue is only for OSGi updates -- it is not clear that test failures are directly related. So: it would be good to create a separate issue for test problems. However, perhaps the difference is not OS or JDK version, but default local timezone? |
Note: issue #49 deals with test failure. Still hoping for a patch for pom.xml to help with ability to specify a later Joda version, leaving this issue open. |
Since OSGi ought to be handled now, #49 is the part regarding timezone dependency of the test. |
Hi,
We are using a more uptodate version of joda time. And we love to use jackson!
But the current
Import-Package
header of yourjackson-datatype-joda
bundle prevent us to upgrade.As you can see your restriction is strong you only support the current minor version: 2.1 and related micros.
At this point of time the latest release from joda time is the 2.3.
Maybe, an option could be to relax your upper bound like this:
What do you think?
Thanks,
Romain.
The text was updated successfully, but these errors were encountered: