db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (DERBY-5331) Incorrect use of CharsetEncoder in DDMWriter
Date Thu, 14 Jul 2011 09:19:00 GMT

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

Knut Anders Hatlen reassigned DERBY-5331:

    Assignee: Knut Anders Hatlen

> Incorrect use of CharsetEncoder in DDMWriter
> --------------------------------------------
>                 Key: DERBY-5331
>                 URL: https://issues.apache.org/jira/browse/DERBY-5331
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Server
>    Affects Versions:,,,,,,,,
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: reset-flush.diff
> DDMWriter has two calls to CharsetEncoder.encode(), in writeLDString() and writeString().
According to the javadoc for CharsetEncoder, one should call reset() before one calls encode(),
and flush() after on. DDMWriter doesn't call reset() or flush(). I'm not aware of any problems
that happen because of it, but we should follow the spec to avoid surprises.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message