Will Java ever allow comments to nest?

Martin Buchholz martinrb at google.com
Fri Jul 3 14:21:01 UTC 2020

On Thu, Jul 2, 2020 at 7:17 AM Pavel Rappo <pavel.rappo at oracle.com> wrote:

> While experimenting with comments I found that IntelliJ IDEA thinks that these are valid comments:
>     /* \u002a/ */
>     /* *\u002f */
> These comments are invalid for the same reason this is not a valid string literal:
>     "Hello,\u000Aworld"

I have a confession to make.  My perl script has the same bug, and I
was even aware of that when I wrote the word __reliably__ previously.

Worse, I'm unlikely to go and fix that bug.  But IDEA should fix its.

More information about the discuss mailing list