- {
- int i;
- /* Rewrite .class file internal form to canonical Java form. */
-#ifdef __GNUC__
- char buffer[name_len];
-#else
- char *buffer = (char *)alloca (name_len);
-#endif
- for (i = 0; i < name_len; i++)
- buffer[i] = (name_ptr[i] == '/' ? '.' : name_ptr[i]);
- name_hash = hashUtf8String (buffer, name_len) & 0xFFFF;
- PUSH_FIELD_VALUE (cinit, "hash", build_int_2 (name_hash, 0));
- PUSH_FIELD_VALUE (cinit, "length", build_int_2 (name_len, 0));
- string = build_string (name_len, buffer);
- }
+ name_hash = hashUtf8String (name_ptr, name_len) & 0xFFFF;
+ PUSH_FIELD_VALUE (cinit, "hash", build_int_2 (name_hash, 0));
+ PUSH_FIELD_VALUE (cinit, "length", build_int_2 (name_len, 0));
+ string = build_string (name_len, name_ptr);