public static String binaryToInternal(String clazz){
  if (clazz.indexOf('/') >= 0 || clazz.indexOf('[') >= 0) {
    throw new IllegalArgumentException(String.format(Locale.ENGLISH,"'%s' is not a valid binary class name.",clazz));
  }
  return clazz.replace('.','/');
}

public static String binaryToInternal ( String clazz ) { if ( clazz . indexOf ( '/' ) >= 0 || clazz . indexOf ( '[' ) >= 0 ) { throw new IllegalArgumentException ( String . format ( Locale . ENGLISH , "'%s' is not a valid binary class name." , clazz ) ) ; } return clazz . replace ( '.' , '/' ) ; }
converts a binary class name ( dotted ) to the jvm internal one ( slashed ) . only accepts valid class names , no arrays .
