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

Reply via email to