In association with heise online

14 September 2012, 17:05

JSR 310's Date and Time API added to JDK 8

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

JSR 310, the long-running Java Specification Request for a date and time API to replace the existing complex and hard to work with date and time support, has been added to the feature list for OpenJDK 8 and Java 8. Expected to arrived in January 2013's milestone 6 release, the inclusion of JSR310 in Java 8 is the result of work done over the summer to simplify and refine the API so that it could be included.

Java's initial time and date handling represented time as a single long variable; a very simplistic and limited representation. In 1999, IBM contributed a replacement API which attempted to be as flexible as possible, but which also turned out to be cumbersome for many common cases. So, in 2005, Stephen Colebourne created the Joda-Time library to address the problems; Joda-Time is still actively developed with most recent version being 2.1. Colebourne went on to also submit a specification, and act as specification lead, to the Java Community Process for a replacement date and time API; this became the JSR310 specification. It was hoped that it would be included in Java 7, but in the end did not make the final cut.

Now JSR 310 is heading to Java 8, due to arrive in final release form in September 2013. The ThreeTen project has been established to do the integration work. The project is hosted on SourceForge with source code available on GitHub.


Print Version | Send by email | Permalink:

  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit