diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/coder/TestErasureCoderBase.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/coder/TestErasureCoderBase.java index 36e061a3ee..d911db9e19 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/coder/TestErasureCoderBase.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/coder/TestErasureCoderBase.java @@ -162,7 +162,7 @@ private ErasureEncoder createEncoder() { } encoder.initialize(numDataUnits, numParityUnits, chunkSize); - encoder.setConf(conf); + ((AbstractErasureCoder)encoder).setConf(conf); return encoder; } @@ -179,7 +179,7 @@ private ErasureDecoder createDecoder() { } decoder.initialize(numDataUnits, numParityUnits, chunkSize); - decoder.setConf(conf); + ((AbstractErasureCoder)decoder).setConf(conf); return decoder; }