Skip to content

Commit 8ddb3fb

Browse files
committed
Release v2.5
1 parent bb7ca2c commit 8ddb3fb

File tree

6 files changed

+127
-18
lines changed

6 files changed

+127
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Various documentation is available:
4646

4747

4848
### Releases
49-
[Release 2.4](http://www.joda.org/joda-time/download.html) is the current latest release.
49+
[Release 2.5](http://www.joda.org/joda-time/download.html) is the current latest release.
5050
This release is considered stable and worthy of the 1.x tag.
5151
It depends on JDK 1.5 or later.
5252

53-
Available in the [Maven Central repository](http://search.maven.org/#artifactdetails|joda-time|joda-time|2.4|jar)
53+
Available in the [Maven Central repository](http://search.maven.org/#artifactdetails|joda-time|joda-time|2.5|jar)
5454

5555

5656
### Related projects

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<artifactId>joda-time</artifactId>
1010
<packaging>jar</packaging>
1111
<name>Joda-Time</name>
12-
<version>2.5-SNAPHOT</version>
12+
<version>2.5</version>
1313
<description>Date and time library to replace JDK date handling</description>
1414
<url>http://www.joda.org/joda-time/</url>
1515

src/conf/MANIFEST.MF

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ Package: org.joda.time
22
Extension-Name: joda-time
33
Specification-Title: Joda-Time
44
Specification-Vendor: Joda.org
5-
Specification-Version: 2.4
5+
Specification-Version: 2.5
66
Implementation-Vendor: Joda.org
77
Implementation-Title: org.joda.time
8-
Implementation-Version: 2.4
8+
Implementation-Version: 2.5
99
Implementation-Vendor-Id: org.joda
1010
Bundle-ManifestVersion: 2
1111
Bundle-Vendor: Joda.org
1212
Bundle-Name: Joda-Time
1313
Bundle-SymbolicName: joda-time
14-
Bundle-Version: 2.4
15-
Export-Package: org.joda.time;version=2.4,
16-
org.joda.time.base;version=2.4,
17-
org.joda.time.chrono;version=2.4,
18-
org.joda.time.convert;version=2.4,
19-
org.joda.time.field;version=2.4,
20-
org.joda.time.format;version=2.4,
21-
org.joda.time.tz;version=2.4
14+
Bundle-Version: 2.5
15+
Export-Package: org.joda.time;version=2.5,
16+
org.joda.time.base;version=2.5,
17+
org.joda.time.chrono;version=2.5,
18+
org.joda.time.convert;version=2.5,
19+
org.joda.time.field;version=2.5,
20+
org.joda.time.format;version=2.5,
21+
org.joda.time.tz;version=2.5
2222
Bundle-License: Apache 2.0
2323
Bundle-DocURL: http://www.joda.org/joda-time/

src/site/xdoc/index.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public boolean isJoinedInLastThreeMonths(<a href="apidocs/org/joda/time/DateTime
5454
return last3Months.contains(datetimeJoined);
5555
}
5656
-->
57-
Version 2.4 was released on 2014-07-27 -
57+
Version 2.5 was released on 2014-10-03 -
5858
<a href="download.html">Download now</a>
5959
</p>
6060
</section>
@@ -140,14 +140,14 @@ Various documentation is available:
140140

141141
<section name="Releases">
142142
<p>
143-
<a href="download.html">Release 2.4</a>
143+
<a href="download.html">Release 2.5</a>
144144
is the current latest release.
145145
This release is an evolution of the 1.x codebase, not a major rewrite.
146146
It is considered stable and worthy of the 2.x tag.
147147
</p>
148148
<p>
149-
Version 2.4 is a bugfix release compatible with version 2.3.
150-
See the <a href="upgradeto240.html">upgrade notes</a> for full details.
149+
Version 2.5 is a bugfix release compatible with version 2.x.
150+
See the <a href="upgradeto250.html">upgrade notes</a> for full details.
151151
</p>
152152
<p>
153153
Version 2.x is almost completely source and binary compatible with version 1.x.
@@ -161,7 +161,7 @@ The main public API will remain backwards compatible for both source and binary
161161
The version number will change to 3.0 to indicate a significant change in compatibility.
162162
</p>
163163
<p>
164-
Available in <a href="http://search.maven.org/#artifactdetails|joda-time|joda-time|2.4|jar">Maven Central</a>.
164+
Available in <a href="http://search.maven.org/#artifactdetails|joda-time|joda-time|2.5|jar">Maven Central</a>.
165165
</p>
166166

167167
<p>

src/site/xdoc/installation.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ of the source code suitable for linking to the jar file in IDEs such as Eclipse.
2222
<p>
2323
The release notes for upgraders can be found here:
2424
<ul>
25+
<li><a href="upgradeto250.html">Version 2.5</a> - upgrade from Version 2.4</li>
2526
<li><a href="upgradeto240.html">Version 2.4</a> - upgrade from Version 2.3</li>
2627
<li><a href="upgradeto230.html">Version 2.3</a> - upgrade from Version 2.2</li>
2728
<li><a href="upgradeto220.html">Version 2.2</a> - upgrade from Version 2.1</li>

src/site/xdoc/upgradeto250.xml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
3+
<document>
4+
<properties>
5+
<title>Java date and time API - Upgrade from 2.4 to 2.5</title>
6+
<author>Stephen Colebourne</author>
7+
</properties>
8+
9+
<body>
10+
11+
<section name="Upgrade">
12+
<p>
13+
These are the release notes and advice for upgrading Joda-Time from version 2.4 to version 2.5.
14+
<source>
15+
Joda-Time version 2.5
16+
---------------------
17+
18+
Joda-Time is a date and time handling library that seeks to replace the JDK
19+
Date and Calendar classes.
20+
21+
This release contains enhancements, bug fixes and a time zone update.
22+
The release runs on JDK 5 or later.
23+
24+
Joda-Time is licensed under the business-friendly Apache License Version 2.
25+
This is the same license as all of Apache, plus other open source projects such as Spring.
26+
The intent is to make the code available to the Java community with the minimum
27+
of restrictions. If the license causes you problems please contact the mailing list.
28+
29+
** Please also check out our related projects **
30+
** http://www.joda.org/joda-time/related.html **
31+
32+
33+
Enhancements since 2.4
34+
----------------------
35+
- Add regex based Period formatting [#166]
36+
Regex based formatting allows for languages with more complex rules, such as Polish
37+
38+
- Add time-zone database version to manifest [#176, #183]
39+
The version is available as key 'Time-Zone-Database-Version'
40+
41+
42+
Compatibility with 2.4
43+
----------------------
44+
Build system - Yes
45+
46+
Binary compatible - Yes
47+
48+
Source compatible - Yes, except
49+
- The constant DateTimeZone.UTC has changed implementation type
50+
It used to be a FixedDateTimeZone, now it is a UTCDateTimeZone
51+
This avoids a potential deadlock scenario
52+
Serialization is unaffected
53+
This change will only be observable if you cast the UTC constant to FixedDateTimeZone
54+
55+
Serialization compatible - Yes
56+
57+
Data compatible - Yes, except
58+
- DateTimeZone data updated to version 2014h
59+
- Bug in time zone compilation fixed
60+
61+
Semantic compatible - Yes, except
62+
- LocalDate.toDateTime(LocalTime) and LocalDate.toDateTime(LocalTime, DateTimeZone)
63+
If you pass a null LocalTime to the method, no changes have been made
64+
If you pass a non-null LocalTime then behaviour during daylight saving gap and overlap has changed
65+
During a daylight saving gap the exception has changed from IllegalFieldValueException to IllegalInstantException
66+
During a daylight saving overlap the earlier offset is selected
67+
Previously, the earlier offset was chosen east of Greenwich and the later offset west of Greenwich
68+
69+
70+
Deprecations since 2.4
71+
----------------------
72+
73+
74+
Bug fixes since 2.4
75+
-------------------
76+
- Time zone compiler failed to correctly process 24:00 [#173, #182]
77+
This caused reported time to be wrong in Africa/Cairo (and possibly others)
78+
79+
- Additional overflow check for Duration constructor [#159]
80+
Handle MIN/MAX value better.
81+
82+
- Handle complex prefix/suffix combinations [#154, #169]
83+
For example, 'm' for minutes and 'ms' for milliseconds
84+
which both start with 'm'
85+
86+
- Fix deadlock [#171]
87+
Referencing DateTimeZone and FixedDateTimeZone from two threads at startup could deadlock
88+
Add package scoped UTCDateTimeZone class to avoid this
89+
90+
- Use of current time when converting from LocalDate [#177]
91+
LocalDate.toDateTime(LocalTime) and LocalDate.toDateTime(LocalTime, DateTimeZone)
92+
These methods used DateTimeUtils.currentTimeMillis() in all cases, rather than just when LocalTime was null
93+
Behaviour when LocalTiem is null has been left unchanged
94+
When LocalTime is non-null, it no longer uses DateTimeUtils.currentTimeMillis()
95+
This change resulted in the semantic change detailed above
96+
97+
98+
Scala
99+
--------
100+
Joda-Time uses annotations from Joda-Convert.
101+
In the Java programming language, this dependency is optional, however in Scala it is not.
102+
Scala users must manually add the Joda-Convert v1.2 dependency.
103+
</source>
104+
</p>
105+
</section>
106+
107+
</body>
108+
</document>

0 commit comments

Comments
 (0)