You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hiroshi Ikeda (JIRA)" <ji...@apache.org> on 2012/12/25 06:50:12 UTC
[jira] [Created] (HBASE-7434) Use generics appropriately in
RPCEngine and reduce casts, with fixing a related bug of breaking
thread-safety in HConnectionManager
Hiroshi Ikeda created HBASE-7434:
------------------------------------
Summary: Use generics appropriately in RPCEngine and reduce casts, with fixing a related bug of breaking thread-safety in HConnectionManager
Key: HBASE-7434
URL: https://issues.apache.org/jira/browse/HBASE-7434
Project: HBase
Issue Type: Improvement
Reporter: Hiroshi Ikeda
Priority: Minor
In RpcEngine,
{code}
VersionedProtocol getProxy(Class<? extends VersionedProtocol> protocol, ...)
{code}
should be
{code}
<T extends VersionedProtocol> T getProxy(Class<T> protocol, ...)
{code}
Also, while removing casts I encountered a bug of the method HConnectionManager.HConnectionImplementation.getProtocol() using broken logic just like double-checked locking for HashMap.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira