Just for completeness, in cases where the use of ASM5 library is acceptable, the following call could be used to obtain the class name from its byte representation.
public String readClassName(final byte[] typeAsByte) {
return new ClassReader(typeAsByte).getClassName().replace("/", ".");
}