mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-815) CumulativeProtocolDecoder.decode(...) does not find previous buffer
Date Wed, 12 Jan 2011 12:07:46 GMT

    [ https://issues.apache.org/jira/browse/DIRMINA-815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980681#action_12980681
] 

Emmanuel Lecharny commented on DIRMINA-815:
-------------------------------------------

We can keep the hashcode in the name this way :
this.name = source.getName() + '.' + name + '@' + Integer.toHexString(super.hashCode());

Also the hashcode method could be simpler : 

	@Override
	public int hashCode() {
                return name.hashCode());
	}



> CumulativeProtocolDecoder.decode(...) does not find previous buffer
> -------------------------------------------------------------------
>
>                 Key: DIRMINA-815
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-815
>             Project: MINA
>          Issue Type: Bug
>         Environment: any
>            Reporter: Siro Mateos
>         Attachments: AttributeKey.patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> CumulativeProtocolDecoder does not find previous input buffer stored in 'session.attributes'
(see 'CumulativeProtocolDecoder.java', line 136), probably because 'attributes' uses a ConcurrentHashMap,
and class AttributeKey does NOT implement hashCode(), rendering CumulativeProtocolDecoder
useless.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message