Fix for Bug 144
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / impl / util / ClassLoaderUtils.java
index 0b91658a187399758e5e8dac99f884749c0d048e..87f31ac5c435820c5ddb5ec505e3dabbab94eba8 100644 (file)
@@ -34,6 +34,10 @@ public class ClassLoaderUtils {
     
     
     public static Class<?> loadClassWithTCCL(String name) throws ClassNotFoundException {
+        if("byte[]".equals(name)) {
+            return byte[].class;
+        }
+        
         return Thread.currentThread().getContextClassLoader().loadClass(name);
     }
 }
\ No newline at end of file