commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Honton (JIRA)" <>
Subject [jira] [Commented] (LANG-1165) FastDateFormat should extend DateFormat
Date Fri, 25 Dec 2015 21:11:49 GMT


Charles Honton commented on LANG-1165:

Unfortunately, having FastDateFormat extend DateFormat causes multiple final method violations:
 All of the static getInstance() and getDateInstance methods are final in DataFormat.

FastDateParser can extend DateFormat.  FastDatePrinter could extend DateFormat with refactoring
of two final format() methods, possibly a slight performance hit.

> FastDateFormat should extend DateFormat
> ---------------------------------------
>                 Key: LANG-1165
>                 URL:
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.time.*
>    Affects Versions: 3.4
>            Reporter: Michael Osipov
> Current FDT extends {{Format}} only, thus making it impossible to replace SDF where {{DateFormat}}
is accepted.
> I am using Jackson's {{ObjectMapper}} which has a {{#setDateFormat}} method. But -- it
accepts {{DateFormat}}. Impossible to use FDT.

This message was sent by Atlassian JIRA

View raw message