Lang 2.1, latest….

September 26th, 2004 by Hen

If you’re a Lang 2.0 user, here’s what’s changed in 2.1. I’m already looking forward to 3.0 as although there’s not much deprecation, I love the clean feel of a codebase without deprecations.

Today was spent hacking more on DurationFormatUtils. It’s a class designed to print out the hours, minutes and seconds between two times, or that a millisecond amount represents. It’s easy until you hit Months, and then it gets sick and painful. The aim for Lang is just to have something usable, and the current implementation seems to be pretty much there.

I discovered a week or two back that FastDateFormat has some bizarre bugs, so be aware if you’re currently using it. It occurs on each of the following lines, deciding the days are 366 for the first one. This is of the month.

        Calendar cal = Calendar.getInstance();
        FastDateFormat format = FastDateFormat.getInstance("yyyy/MM/DD");

        cal.set(2004,11,31);
        assertEquals(”2004/12/31″, format.format(cal));
        cal.set(999,11,31);
        assertEquals(”0999/12/31″, format.format(cal));
        cal.set(1,2,2);
        assertEquals(”0001/03/02″, format.format(cal)); 

Other than this, there are only a couple of minor bugs open for 2.1, and a lot of fixes made which need a second pair of eyes. In the absence of JIRA, I’ve been using the Wiki for the release plan. Not as nice as JIRA, but it works.

So I guess I should try to get decisions on the remaining handful of bugs (4 at the current count, 2 more turned up in the last couple of days) and then cut an RC1. Usually a Lang RC is just a practice at getting the release right, but I suspect that this will be far more of an actual beta release. Possibly it should be honest and call it Lang-2.1-beta1 or some-such.

Comments are closed.