james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Norman Maurer (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (PROTOCOLS-71) LineHandler should use a read-only ByteBuffer as paramater as replacement for byte[]
Date Fri, 23 Dec 2011 20:34:30 GMT

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

Norman Maurer resolved PROTOCOLS-71.
------------------------------------

    Resolution: Fixed

done
                
> LineHandler should use a read-only ByteBuffer as paramater as replacement for byte[]
> ------------------------------------------------------------------------------------
>
>                 Key: PROTOCOLS-71
>                 URL: https://issues.apache.org/jira/browse/PROTOCOLS-71
>             Project: JAMES Protocols
>          Issue Type: Improvement
>          Components: api
>    Affects Versions: 1.6.0-RC1
>            Reporter: Norman Maurer
>            Assignee: Norman Maurer
>             Fix For: 1.6.0
>
>
> At the moment we use a byte[] as parameter for the LineHandler. This as many downsides:
> * It may need an extra byte[] copy as if you use nio which is backed by ByteBuffer's
the backed array of them may be bigger thn the actual content. So you may end up having byte[]
instances which contains null values
> * The byte[] is mutable
> * Its not easy to combine byte[] instances

--
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message