Hole In The Wall

カリフォルニア州サンノゼ在のソフトウェアエンジニア。

Javaのソース中の面白いコメント。

これは面白い。

And now something completely different: I've studied the Java sources quite a bit and I've learned a bunch. I've also come across some pretty funny, strange and unexpected comments. Here's my categorized compilation of the most interesting ones.

(Slightly) Random Broken Thoughts: Appease the serialization gods (and other interesting comments from the Java sources)

"Serializationの神を鎮めるために"とか、カフカの「変身」の冒頭部分とかいろいろあるけれど、個人的ヒットはこれ:


javax.swing.text.rtf.RTFGenerator:
001 String approximationForUnicode(char ch)
002 {
003 /* TODO: Find reasonable approximations for all Unicode characters
004 in all RTF code pages... heh, heh... */
005 return "?";
006 }

お、おのれ〜!今まで10年来ずーっと文字コード変換で失敗してると思ってたじゃないか(笑)。