[ 
https://issues.apache.org/jira/browse/SOLR-12586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Smiley updated SOLR-12586:
--------------------------------
    Description: 
We're using Joda Time, a dependency in a couple places.  Now that we are on 
Java 8, we ought to drop the dependency, using the equivalent java.time package 
instead.  As I understand it, Joda time more or less was incorporated to Java 
as java.time with some fairly minor differences.

Usages:
 * ConfigSetService
 * ParseDateFieldUpdateProcessorFactory

And some related tests.

----
Note this is a fairly impactful change due to a change in the pattern language. 
 Here are the "upgrade notes" in changes.txt:
{quote}The date format patterns used by ParseDateFieldUpdateProcessorFactory 
(present in "schemaless mode")
  are now interpreted by Java 8's java.time.DateTimeFormatter instead of Joda 
Time.  The pattern language is very
  similar but not the same.  Typically, simply update the pattern by changing 
an uppercase 'Z' to lowercase 'z' and
  that's it.  For the current recommended set of patterns in schemaless mode, 
see "Schemaless Mode" in the ref guide.
{quote}

  was:
We're using Joda Time, a dependency in a couple places.  Now that we are on 
Java 8, we ought to drop the dependency, using the equivalent java.time package 
instead.  As I understand it, Joda time more or less was incorporated to Java 
as java.time with some fairly minor differences.

Usages:
 * ConfigSetService
 * ParseDateFieldUpdateProcessorFactory

And some related tests.


> Replace use of Joda Time with Java 8 java.time
> ----------------------------------------------
>
>                 Key: SOLR-12586
>                 URL: https://issues.apache.org/jira/browse/SOLR-12586
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Minor
>             Fix For: master (8.0)
>
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> We're using Joda Time, a dependency in a couple places.  Now that we are on 
> Java 8, we ought to drop the dependency, using the equivalent java.time 
> package instead.  As I understand it, Joda time more or less was incorporated 
> to Java as java.time with some fairly minor differences.
> Usages:
>  * ConfigSetService
>  * ParseDateFieldUpdateProcessorFactory
> And some related tests.
> ----
> Note this is a fairly impactful change due to a change in the pattern 
> language.  Here are the "upgrade notes" in changes.txt:
> {quote}The date format patterns used by ParseDateFieldUpdateProcessorFactory 
> (present in "schemaless mode")
>   are now interpreted by Java 8's java.time.DateTimeFormatter instead of Joda 
> Time.  The pattern language is very
>   similar but not the same.  Typically, simply update the pattern by changing 
> an uppercase 'Z' to lowercase 'z' and
>   that's it.  For the current recommended set of patterns in schemaless mode, 
> see "Schemaless Mode" in the ref guide.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to