Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.x
-
None
-
ANY
Description
Inconsistent behaviour compared to SimpleDateFormat.
StringIndexOutOfBoundsException using one format and no exception when using another format. (both legal).
Different results when using another format.
Testcase:
import org.apache.commons.lang3.time.FastDateFormat;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.Test;
import java.text.SimpleDateFormat;
import java.util.Date;
public class FastDateFormatBug {
@Test
public void testFastFormatWitLongMaxValue()
@Test
public void testWeirdResultWithMaxValue()
@Test
public void testSimpleFormatWithLongMaxValueWithLenientOff()
@Test
public void testSimpleFormatWithLongMaxValueWithLenientOn()
}