Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base` [v2]

2024-05-31 Thread Joe Darcy
On Tue, 28 May 2024 22:31:15 GMT, Jonathan Gibbons wrote: >> With the advent of JEP 467, `///` comments may be treated as documentation >> comments, and may be subject to the recently new `javac` warning about >> "dangling doc comments" in unexpected places. >> >> In keeping with the policy to

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base` [v2]

2024-05-31 Thread Iris Clark
On Tue, 28 May 2024 22:31:15 GMT, Jonathan Gibbons wrote: >> With the advent of JEP 467, `///` comments may be treated as documentation >> comments, and may be subject to the recently new `javac` warning about >> "dangling doc comments" in unexpected places. >> >> In keeping with the policy to

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base` [v2]

2024-05-29 Thread Daniel Fuchs
On Tue, 28 May 2024 22:31:15 GMT, Jonathan Gibbons wrote: >> With the advent of JEP 467, `///` comments may be treated as documentation >> comments, and may be subject to the recently new `javac` warning about >> "dangling doc comments" in unexpected places. >> >> In keeping with the policy to

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base` [v2]

2024-05-28 Thread Joe Darcy
On Tue, 28 May 2024 20:26:40 GMT, Naoto Sato wrote: >> As a non-standard comment, it will trigger a warning (and hence an error), >> since the prevailing standard for `java.base` is to compile with all >> warnings enabled (`-Xlint`) and no warnings found (verified by `-Werror`) >> >> The alter

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base` [v2]

2024-05-28 Thread Jonathan Gibbons
> With the advent of JEP 467, `///` comments may be treated as documentation > comments, and may be subject to the recently new `javac` warning about > "dangling doc comments" in unexpected places. > > In keeping with the policy to keep the `java.base` module free of all `javac` > warnings, thi

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-28 Thread Alan Bateman
On Tue, 28 May 2024 20:22:24 GMT, Jonathan Gibbons wrote: > What about changing `///` to `//---` to give slightly more prominence to > these comments, over plain old `//` comments. The dashes give a small sense > of a horizontal rule, to delimit sections of code. > > (FWIW, I have locally edit

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-28 Thread Naoto Sato
On Tue, 28 May 2024 18:50:38 GMT, Jonathan Gibbons wrote: >> src/java.base/share/classes/jdk/internal/icu/impl/StringPrepDataReader.java >> line 122: >> >>> 120: * see store.c of gennorm for more information and values >>> 121: */ >>> 122: // /* dataFormat="SPRP" 0x53, 0x50, 0x52,

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-28 Thread Naoto Sato
On Tue, 7 May 2024 22:23:48 GMT, Jonathan Gibbons wrote: > With the advent of JEP 467, `///` comments may be treated as documentation > comments, and may be subject to the recently new `javac` warning about > "dangling doc comments" in unexpected places. > > In keeping with the policy to keep

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-28 Thread Jonathan Gibbons
On Tue, 28 May 2024 20:01:46 GMT, Alan Bateman wrote: > > OK. I was just trying to honor the apparent intent to make the comment > > stand out more than just a plain `//` comment, but I have no strong > > feelings against reducing `///` to `//` > > In this case I would reduce it to '//' but ot

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-28 Thread Alan Bateman
On Tue, 28 May 2024 18:57:07 GMT, Jonathan Gibbons wrote: > OK. I was just trying to honor the apparent intent to make the comment stand > out more than just a plain `//` comment, but I have no strong feelings > against reducing `///` to `//` In this case I would reduce it to '//' but others w

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-28 Thread Jonathan Gibbons
On Thu, 23 May 2024 05:52:57 GMT, Alan Bateman wrote: > > A long vertical series of lines beginning /// is replaced by lines > > beginning //|. > > This one looks unusual when it's just one line, I could imagine deleting the > "|" in these cases. OK. I was just trying to honor the apparent in

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-28 Thread Jonathan Gibbons
On Wed, 22 May 2024 20:13:08 GMT, Naoto Sato wrote: >> With the advent of JEP 467, `///` comments may be treated as documentation >> comments, and may be subject to the recently new `javac` warning about >> "dangling doc comments" in unexpected places. >> >> In keeping with the policy to keep

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-22 Thread Alan Bateman
On Tue, 7 May 2024 22:23:48 GMT, Jonathan Gibbons wrote: > A long vertical series of lines beginning /// is replaced by lines beginning > //|. This one looks unusual when it's just one line, I could imagine deleting the "|" in these cases. - PR Comment: https://git.openjdk.org/jd

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-22 Thread Naoto Sato
On Tue, 7 May 2024 22:23:48 GMT, Jonathan Gibbons wrote: > With the advent of JEP 467, `///` comments may be treated as documentation > comments, and may be subject to the recently new `javac` warning about > "dangling doc comments" in unexpected places. > > In keeping with the policy to keep

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-17 Thread Chen Liang
On Tue, 7 May 2024 22:23:48 GMT, Jonathan Gibbons wrote: > With the advent of JEP 467, `///` comments may be treated as documentation > comments, and may be subject to the recently new `javac` warning about > "dangling doc comments" in unexpected places. > > In keeping with the policy to keep

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-17 Thread ExE Boss
On Tue, 7 May 2024 22:23:48 GMT, Jonathan Gibbons wrote: > With the advent of JEP 467, `///` comments may be treated as documentation > comments, and may be subject to the recently new `javac` warning about > "dangling doc comments" in unexpected places. > > In keeping with the policy to keep

RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-17 Thread Jonathan Gibbons
With the advent of JEP 467, `///` comments may be treated as documentation comments, and may be subject to the recently new `javac` warning about "dangling doc comments" in unexpected places. In keeping with the policy to keep the `java.base` module free of all `javac` warnings, this patch prop

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-15 Thread Jaikiran Pai
On Fri, 10 May 2024 01:25:45 GMT, xiaotaonan wrote: >> Clean up non-standard use of /// comments in `java.base` > > @mdinacci @hns @landonf Hello @xiaotaonan, like Jon noted in his comment, there's already another PR addressing this change. So I think this current PR can be closed. --

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-10 Thread Jaikiran Pai
On Fri, 10 May 2024 01:25:45 GMT, xiaotaonan wrote: >> Clean up non-standard use of /// comments in `java.base` > > @mdinacci @hns @landonf Hello @xiaotaonan, I see that you have several PRs of similar nature that have been opened in the past day or two. I would recommend taking a look at the

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-10 Thread Jonathan Gibbons
On Thu, 9 May 2024 02:09:50 GMT, xiaotaonan wrote: > Clean up non-standard use of /// comments in `java.base` This PR is premature. Until JEP 467 is integrated, there is nothing special about `///` comments, and the compiler does not report on non-standard use. There is a Draft PR for this iss

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-09 Thread xiaotaonan
On Thu, 9 May 2024 02:09:50 GMT, xiaotaonan wrote: > Clean up non-standard use of /// comments in `java.base` @mdinacci @hns @landonf - PR Comment: https://git.openjdk.org/jdk/pull/19151#issuecomment-2103685769

Re: RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-08 Thread Chen Liang
On Thu, 9 May 2024 02:09:50 GMT, xiaotaonan wrote: > Clean up non-standard use of /// comments in `java.base` Related to #19130. Good catch, these were probably not detected because they were compiled at Java 8 language level and thus not detected by the new compiler warnings. -

RFR: 8331879: Clean up non-standard use of /// comments in `java.base`

2024-05-08 Thread xiaotaonan
Clean up non-standard use of /// comments in `java.base` - Commit messages: - Clean up non-standard use of /// comments in Changes: https://git.openjdk.org/jdk/pull/19151/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19151&range=00 Issue: https://bugs.openjdk.org/browse