JdbcDate.getString(ByteBuffer) appears to not be multithreaded safe
-------------------------------------------------------------------

                 Key: CASSANDRA-3822
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3822
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Dave Brosius
            Priority: Trivial


JdbcDate.getString(ByteBuffer) makes use of a static SimpleDateFormat

static final SimpleDateFormat FORMATTER = new SimpleDateFormat(DEFAULT_FORMAT);

SimpleDateFormat is not thread safe, as it uses a field from parent class 
DateFormat

    protected Calendar calendar;

to convert dates to calendars.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to