Hello,

we tried to upgrade from joda-time 2.1 to 2.3, but we get now NPEs, because 
our DateTimeFormatter instance suddenly has no longer a printer:

================= %< =================
 DateTimeFormatter FORMATTER = new DateTimeFormatterBuilder()
   .appendMonthOfYear(2)
   .appendOptional(
      new DateTimeFormatterBuilder().appendLiteral('-').toParser())
   .appendDayOfMonth(2)
   .toFormatter();
 assertNotNull(FORMATTER.getPrinter());
================= %< =================

A test with version 2.2 reveals the same problem. Reverting to 2.1 let our 
unit tests pass.

I could not see anything directly related to this new behavior in the 
release notes, so I assume a regression or was there an intentional change?

- Jörg


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to