2007-01-12 - こくぼ@Everything is the experience.

以前、このブログでScannerクラスのバグらしきものを書いて、Javaの凄い人に見てもらって、Sun Microsystemsの片貝さんにバグレポートをしていただいたものが、解決されたみたいです。
結果的にはバグではなかったみたいで、評価した人のコメントを見ると、regressionという表現が見られます。

Scanner.findInLine() only tries to match
the input "up to" the next line separator, \n is a line separator,
there is nothing (empty string) between the current position and
the position of "next line separator", so the fineInLIne() is
expected to return "found nothing" in this scenario.

"up to"という表現がよくわからないのですが、とりあえずはScanner.findWithinHorizon("(?s).*", 0)で回避できるみたいです。
あらためて、片貝さんに感謝します。ありがとうございます。(そして、きしださんご迷惑おかけしてすみませんでした)