Skip to content

Commit b0fcbb9

Browse files
committed
Release v2.3
1 parent bbb38a0 commit b0fcbb9

File tree

6 files changed

+158
-18
lines changed

6 files changed

+158
-18
lines changed

README.md

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

4848

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

54-
Available in the [Maven Central repository](http://search.maven.org/#artifactdetails|joda-time|joda-time|2.2|jar)
54+
Available in the [Maven Central repository](http://search.maven.org/#artifactdetails|joda-time|joda-time|2.3|jar)
5555

5656

5757
### 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.3-SNAPSHOT</version>
12+
<version>2.3</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.2
5+
Specification-Version: 2.3
66
Implementation-Vendor: Joda.org
77
Implementation-Title: org.joda.time
8-
Implementation-Version: 2.2
8+
Implementation-Version: 2.3
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.2
15-
Export-Package: org.joda.time;version=2.2,
16-
org.joda.time.base;version=2.2,
17-
org.joda.time.chrono;version=2.2,
18-
org.joda.time.convert;version=2.2,
19-
org.joda.time.field;version=2.2,
20-
org.joda.time.format;version=2.2,
21-
org.joda.time.tz;version=2.2
14+
Bundle-Version: 2.3
15+
Export-Package: org.joda.time;version=2.3,
16+
org.joda.time.base;version=2.3,
17+
org.joda.time.chrono;version=2.3,
18+
org.joda.time.convert;version=2.3,
19+
org.joda.time.field;version=2.3,
20+
org.joda.time.format;version=2.3,
21+
org.joda.time.tz;version=2.3
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.2 was released on 2013-03-08 -
57+
Version 2.3 was released on 2013-08-16 -
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.2</a>
143+
<a href="download.html">Release 2.3</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.2 is a bugfix release compatible with version 2.1.
150-
See the <a href="upgradeto220.html">upgrade notes</a> for full details.
149+
Version 2.3 is a bugfix release compatible with version 2.2.
150+
See the <a href="upgradeto230.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.2|jar">Maven Central</a>.
164+
Available in <a href="http://search.maven.org/#artifactdetails|joda-time|joda-time|2.3|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="upgradeto230.html">Version 2.3</a> - upgrade from Version 2.2</li>
2526
<li><a href="upgradeto220.html">Version 2.2</a> - upgrade from Version 2.1</li>
2627
<li><a href="upgradeto210.html">Version 2.1</a> - upgrade from Version 2.0</li>
2728
<li><a href="upgradeto200.html">Version 2.0</a> - upgrade from Version 1.6</li>

src/site/xdoc/upgradeto230.xml

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
3+
<document>
4+
<properties>
5+
<title>Java date and time API - Upgrade from 2.2 to 2.3</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.2 to version 2.3.
14+
<source>
15+
Joda-Time version 2.3
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.2
34+
----------------------
35+
- Interval/MutableInterval .isEqual() [#20]
36+
Add method to compare intervals ignoring the chronology
37+
https://github.com/JodaOrg/joda-time/issues/20
38+
39+
- Chronology classes now define equals methods [#36]
40+
Previously, the Chronology classes relied on caching in factory methods
41+
to guarantee instances were singletons
42+
Now, there are dedicated, normal, equals methods
43+
This will aid weird cases where deserialization or similar avoids the caches
44+
It will make no difference to most users
45+
46+
- Maximum size for pattern cache [#49]
47+
Sets a maximum size for the cache to avoid memory issues
48+
49+
- Add LocalDateTime.toDate(TimeZone) [#48]
50+
Provides an alternate way to create a java.util.Date that avoids some synchronization
51+
52+
- Home page moved
53+
http://www.joda.org/joda-time
54+
55+
56+
Compatibility with 2.2
57+
----------------------
58+
Build system - Yes
59+
60+
Binary compatible - Yes
61+
62+
Source compatible - Yes
63+
64+
Serialization compatible - Yes
65+
66+
Data compatible - Yes, except
67+
- DateTimeZone data updated to version 2013d
68+
69+
Semantic compatible - Yes, except
70+
- DateTimeZone is now limited to offsets from -23:59:59.999 to +23:59:59.999
71+
72+
- BasicChronology now defines an equals method
73+
This which would affect you if you subclassed it (unlikely)
74+
75+
- GJChronology now has a minimum cutover instant of 0001-01-01 (Gregorian)
76+
Its unlikely you have it set earlier than this
77+
If you did your code was broken anyway
78+
79+
80+
Deprecations since 2.2
81+
----------------------
82+
- DateMidnight [#41]
83+
This class is flawed in concept
84+
The time of midnight occasionally does not occur in some time-zones
85+
This is a result of a daylight savings time from 00:00 to 01:00
86+
DateMidnight is essentially a DateTime with a time locked to midnight
87+
Such a concept is more generally a poor one to use, given LocalDate
88+
Replace DateMidnight with LocalDate
89+
Or replace it with DateTime, perhaps using the withTimeAtStartOfDay() method
90+
91+
92+
Bug fixes since 2.2
93+
-------------------
94+
- ZoneInfoCompiler and DateTimeZoneBuilder multi-threading [#18]
95+
A thread local variable was previously only initialised in one thread causing NPE
96+
https://github.com/JodaOrg/joda-time/issues/18
97+
98+
- Short time-zone name parsing failed to match the longest name
99+
This affected two short names where one is a short form of the second such as "UT" and "UTC"
100+
101+
- Days.daysBetween fails for MonthDay [#22]
102+
Incorrect calculation around leap years
103+
104+
- DateTimeZone failed to validate offsets [#43]
105+
Previously, there was little validation, resulting in the ability to create large offsets
106+
Those offsets could fail in other parts of the library
107+
Now, it is limited to -23:59:59.999 to +23:59:59.999
108+
109+
- DateTimeZone.forOffsetHoursMinutes failed to allow offsets from -00:01 to -00:59 [#42]
110+
The forOffsetHoursMinutes() method could not create an offset from -00:01 to -00:59
111+
This was due to an inappropriate design
112+
A backwards compatible change to the input handling has been made
113+
forOffsetHoursMinutes(0, -15) now creates -00:15
114+
115+
- DateTimeFormatter.parseInto [#21]
116+
Fix parseInto() where it obtains the default year for parsing from the ReadWritableInstant
117+
Previously, the wrong year could be obtained at the start or end of the year in non UTC zones
118+
Now obtains the year from the ReadWritableInstant using the chronology of the ReadWritableInstant
119+
120+
- Better thread-safety in ISODateTimeFormat [#45]
121+
122+
- Fix GJChronology.plus/minus across cutover and year zero [#28]
123+
When subtracting a number of years from a date in the GJChronology there are two considerations
124+
The cutover date might be crossed, and year zero might be crossed (there is no year zero in GJ)
125+
Previously, each were handled separately, but not together. Now it is fixed
126+
As part of this change, the minimum cutover instant was set to 0001-01-01 (Gregorian)
127+
128+
129+
Scala
130+
--------
131+
Joda-Time uses annotations from Joda-Convert.
132+
In the Java programming language, this dependency is optional, however in Scala it is not.
133+
Scala users must manually add the Joda-Convert v1.2 dependency.
134+
</source>
135+
</p>
136+
</section>
137+
138+
</body>
139+
</document>

0 commit comments

Comments
 (0)