You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org> on 2010/01/21 01:12:54 UTC
[jira] Created: (HBASE-2150) Deprecated HBC(Configuration)
constructor doesn't call this()
Deprecated HBC(Configuration) constructor doesn't call this()
-------------------------------------------------------------
Key: HBASE-2150
URL: https://issues.apache.org/jira/browse/HBASE-2150
Project: Hadoop HBase
Issue Type: Bug
Affects Versions: 0.21.0
Reporter: Jean-Daniel Cryans
Assignee: Jean-Daniel Cryans
Fix For: 0.21.0
While trying to port some 0.20 code, I found that HBC(Configuration) doesn't call the default constructor and thus never leads HBase ressources. This breaks compatibility.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HBASE-2150) Deprecated HBC(Configuration)
constructor doesn't call this()
Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Daniel Cryans resolved HBASE-2150.
---------------------------------------
Resolution: Fixed
Easy fix, committed this to trunk:
{code}
===================================================================
--- src/java/org/apache/hadoop/hbase/HBaseConfiguration.java (revision 900938)
+++ src/java/org/apache/hadoop/hbase/HBaseConfiguration.java (working copy)
@@ -53,11 +53,10 @@
@Deprecated
public HBaseConfiguration(final Configuration c) {
//TODO:replace with private constructor
+ this();
for (Entry<String, String>e: c) {
set(e.getKey(), e.getValue());
}
- LOG.warn("instantinating HBaseConfiguration() is deprecated. Please use " +
- "HBaseConfiguration#create(conf) to construct a plain Configuration");
}
{code}
> Deprecated HBC(Configuration) constructor doesn't call this()
> -------------------------------------------------------------
>
> Key: HBASE-2150
> URL: https://issues.apache.org/jira/browse/HBASE-2150
> Project: Hadoop HBase
> Issue Type: Bug
> Affects Versions: 0.21.0
> Reporter: Jean-Daniel Cryans
> Assignee: Jean-Daniel Cryans
> Fix For: 0.21.0
>
>
> While trying to port some 0.20 code, I found that HBC(Configuration) doesn't call the default constructor and thus never leads HBase ressources. This breaks compatibility.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.