equal
deleted
inserted
replaced
50 res[utf8Idx++] = (byte) (0x80 + (c & 0x3F)); |
50 res[utf8Idx++] = (byte) (0x80 + (c & 0x3F)); |
51 } |
51 } |
52 } |
52 } |
53 } catch (ArrayIndexOutOfBoundsException e) { |
53 } catch (ArrayIndexOutOfBoundsException e) { |
54 throw new InternalError |
54 throw new InternalError |
55 ("Bug in sun.reflect bootstrap UTF-8 encoder"); |
55 ("Bug in sun.reflect bootstrap UTF-8 encoder", e); |
56 } |
56 } |
57 return res; |
57 return res; |
58 } |
58 } |
59 |
59 |
60 private static int utf8Length(String str) { |
60 private static int utf8Length(String str) { |