This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new f88de7b  kvm: NotImplemented, with message to signify what is not 
implemented, using commons-lang version (#3170)
f88de7b is described below

commit f88de7b863498d1a710902d1bd59a78ef0594384
Author: dahn <[email protected]>
AuthorDate: Mon Mar 25 09:28:08 2019 +0100

    kvm: NotImplemented, with message to signify what is not implemented, using 
commons-lang version (#3170)
    
    NotImplementedException from sun.reflect.generics.reflectiveObjects is not 
standard/guarateed by the jvm so a custom implementation is in order.
---
 .../kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImg.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImg.java
 
b/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImg.java
index 7caab74..eb1eeea 100644
--- 
a/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImg.java
+++ 
b/plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/utils/qemu/QemuImg.java
@@ -20,11 +20,10 @@ import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
 
-import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-
 import com.cloud.storage.Storage;
 import com.cloud.utils.script.OutputInterpreter;
 import com.cloud.utils.script.Script;
+import org.apache.commons.lang.NotImplementedException;
 
 public class QemuImg {
 
@@ -72,7 +71,7 @@ public class QemuImg {
             case FAT:
                 return PreallocationType.Full;
             default:
-                throw new NotImplementedException();
+                throw new NotImplementedException(String.format("type %s not 
defined as member-value of PreallocationType", provisioningType));
             }
         }
     }

Reply via email to