RFR: 8299635: More test issues for deprecated sprintf in Xcode 14

2023-01-11 Thread Xue-Lei Andrew Fan
The sprintf is deprecated in Xcode 14 because of security concerns. The issue was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for hotspot impl, and [JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378) for building, but the test case was not covered. The failure

Re: RFR: 8299635: More test issues for deprecated sprintf in Xcode 14

2023-01-11 Thread Xue-Lei Andrew Fan
On Wed, 11 Jan 2023 21:16:51 GMT, Mikael Vidstedt wrote: > This PR does not address all the remaining sprintf:s in hotspot, and with it > now explicitly forbidden the build will fail: > This is a question to me as well. I noticed there are still some use of sprintf, but the building passed o

Re: RFR: 8299635: More test issues for deprecated sprintf in Xcode 14

2023-01-11 Thread Xue-Lei Andrew Fan
On Wed, 11 Jan 2023 21:29:01 GMT, Xue-Lei Andrew Fan wrote: > > I'm also curious: some of the sprintfs are C2 (src/hotspot/share/opto) - > > are your builds including C2? If so, why are you not running into the issue > > for those files? > > I'm new to hotsp

Re: RFR: 8299635: More test issues for deprecated sprintf in Xcode 14

2023-01-13 Thread Xue-Lei Andrew Fan
On Thu, 12 Jan 2023 07:25:07 GMT, Xue-Lei Andrew Fan wrote: >>> This PR does not address all the remaining sprintf:s in hotspot, and with >>> it now explicitly forbidden the build will fail: >>> >> >> This is a question to me as well. I noticed there

Re: RFR: 8299635: More test issues for deprecated sprintf in Xcode 14 [v2]

2023-01-13 Thread Xue-Lei Andrew Fan
was not covered. The failure was reported in [PR > 11793](https://github.com/openjdk/jdk/pull/11793#issuecomment-1371151565), > while running tier1 testing. > > This patch is trying to find the use of sprintf in test cases, and replace it > with snprintf accordingly. Xue-Lei A

Re: RFR: 8299635: More test issues for deprecated sprintf in Xcode 14 [v3]

2023-01-13 Thread Xue-Lei Andrew Fan
was not covered. The failure was reported in [PR > 11793](https://github.com/openjdk/jdk/pull/11793#issuecomment-1371151565), > while running tier1 testing. > > This patch is trying to find the use of sprintf in test cases, and replace it > with snprintf accordingly. Xue-Lei A

Re: RFR: 8299635: More test issues for deprecated sprintf in Xcode 14 [v4]

2023-01-13 Thread Xue-Lei Andrew Fan
was not covered. The failure was reported in [PR > 11793](https://github.com/openjdk/jdk/pull/11793#issuecomment-1371151565), > while running tier1 testing. > > This patch is trying to find the use of sprintf in test cases, and replace it > with snprintf accordingly. Xue-Lei A

Re: RFR: 8299635: More test issues for deprecated sprintf in Xcode 14

2023-01-14 Thread Xue-Lei Andrew Fan
On Fri, 13 Jan 2023 01:56:23 GMT, Serguei Spitsyn wrote: > There are more uses of sprintf in some serviceability folders: Yes. There are at least 57 src files that use sprintf function, as far as I can see. This PR is pretty big now. I would like to clean them up in an other PR so that it i

Re: RFR: 8299635: More test issues for deprecated sprintf in Xcode 14 [v5]

2023-01-14 Thread Xue-Lei Andrew Fan
was not covered. The failure was reported in [PR > 11793](https://github.com/openjdk/jdk/pull/11793#issuecomment-1371151565), > while running tier1 testing. > > This patch is trying to find the use of sprintf in test cases, and replace it > with snprintf accordingly. Xue-Lei A

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Xue-Lei Andrew Fan
On Tue, 17 Jan 2023 20:50:26 GMT, Chris Plummer wrote: >> src/hotspot/os/windows/os_windows.cpp line 387: >> >>> 385: os::snprintf_checked(buf, sizeof(buf), "%s%s;%s%s%s", >>> 386: Arguments::get_java_home(), EXT_DIR, >>> 387: path, PACKAGE_DIR, EXT_DIR); >> >> When

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Xue-Lei Andrew Fan
On Tue, 17 Jan 2023 01:34:49 GMT, David Holmes wrote: >> Xue-Lei Andrew Fan has updated the pull request with a new target base due >> to a merge or a rebase. The incremental webrev excludes the unrelated >> changes brought in by the merge/rebase. The pull request contains

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v6]

2023-01-18 Thread Xue-Lei Andrew Fan
was not covered. The failure was reported in [PR > 11793](https://github.com/openjdk/jdk/pull/11793#issuecomment-1371151565), > while running tier1 testing. > > This patch is trying to find the use of sprintf in hotspot iml and test cases. Xue-Lei Andrew Fan has updated the pull req

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Xue-Lei Andrew Fan
On Tue, 17 Jan 2023 01:36:43 GMT, David Holmes wrote: > I would suggest constraining this PR to src/hotspot and test/hotspot and deal > with the JDK serviceability files in a different PR (and there may be other > JDK files impacted too). I agreed. This PR is mainly focus on the hotspot, exce

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v7]

2023-01-18 Thread Xue-Lei Andrew Fan
was not covered. The failure was reported in [PR > 11793](https://github.com/openjdk/jdk/pull/11793#issuecomment-1371151565), > while running tier1 testing. > > This patch is trying to find the use of sprintf in hotspot iml and test cases. Xue-Lei Andrew Fan has updated the pull req

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v5]

2023-01-18 Thread Xue-Lei Andrew Fan
On Wed, 18 Jan 2023 19:45:55 GMT, Chris Plummer wrote: >> I can see both styles are used in this file. The current code here uses 8 >> whitespaces indent, I would like to keep it. > > I scanned the first 1000 lines and saw many cases of multi-line argument > passing, and they all indent as Dav

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v8]

2023-01-19 Thread Xue-Lei Andrew Fan
was not covered. The failure was reported in [PR > 11793](https://github.com/openjdk/jdk/pull/11793#issuecomment-1371151565), > while running tier1 testing. > > This patch is trying to find the use of sprintf in hotspot iml and test cases. Xue-Lei Andrew Fan has updated the pull req

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14

2023-01-20 Thread Xue-Lei Andrew Fan
On Fri, 13 Jan 2023 08:00:55 GMT, Serguei Spitsyn wrote: >>> > I'm also curious: some of the sprintfs are C2 (src/hotspot/share/opto) - >>> > are your builds including C2? If so, why are you not running into the >>> > issue for those files? >>> >>> I'm new to hotspot. Do you know how could I e

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v8]

2023-01-20 Thread Xue-Lei Andrew Fan
On Fri, 20 Jan 2023 04:39:13 GMT, David Holmes wrote: > Nothing further from me. I think this is okay as-is now. Thanks. @dholmes-ora Thank you for the review! - PR: https://git.openjdk.org/jdk/pull/11935

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v8]

2023-01-24 Thread Xue-Lei Andrew Fan
On Fri, 20 Jan 2023 18:20:10 GMT, Xue-Lei Andrew Fan wrote: >> Nothing further from me. I think this is okay as-is now. Thanks. > >> Nothing further from me. I think this is okay as-is now. Thanks. > > @dholmes-ora Thank you for the review! > @XueleiFan You need two re

Re: RFR: 8299635: Hotspot update for deprecated sprintf in Xcode 14 [v8]

2023-01-25 Thread Xue-Lei Andrew Fan
On Wed, 25 Jan 2023 02:05:31 GMT, Mikael Vidstedt wrote: > Looks good, thank you for doing this! @vidmik Thank you! - PR: https://git.openjdk.org/jdk/pull/11935

Integrated: 8299635: Hotspot update for deprecated sprintf in Xcode 14

2023-01-25 Thread Xue-Lei Andrew Fan
On Wed, 11 Jan 2023 06:26:18 GMT, Xue-Lei Andrew Fan wrote: > The sprintf is deprecated in Xcode 14 because of security concerns. The issue > was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) > for hotspot impl, and > [JDK-8299378](https://bugs.openjdk.or

RFR: 8301132: Test update for deprecated sprintf in Xcode 14

2023-01-26 Thread Xue-Lei Andrew Fan
The sprintf is deprecated in Xcode 14 because of security concerns. The issue was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812)/[JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378)/[JDK-8299635](https://bugs.openjdk.org/browse/JDK-8299635), but the test was not fu

Re: RFR: 8301132: Test update for deprecated sprintf in Xcode 14 [v2]

2023-01-26 Thread Xue-Lei Andrew Fan
but the test was not fully covered yet. This would be the last effort to fix > the issue in test. Xue-Lei Andrew Fan has updated the pull request incrementally with one additional commit since the last revision: incorrect use of sizeof - Changes: - all: https://git.openjdk.org

Re: RFR: 8301132: Test update for deprecated sprintf in Xcode 14 [v2]

2023-01-26 Thread Xue-Lei Andrew Fan
On Thu, 26 Jan 2023 18:07:42 GMT, Mikael Vidstedt wrote: >> Xue-Lei Andrew Fan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> incorrect use of sizeof > > test/jdk/sun/management/windows/exerevokeall.

Integrated: 8301132: Test update for deprecated sprintf in Xcode 14

2023-01-27 Thread Xue-Lei Andrew Fan
On Thu, 26 Jan 2023 06:38:00 GMT, Xue-Lei Andrew Fan wrote: > The sprintf is deprecated in Xcode 14 because of security concerns. The issue > was addressed in > [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812)/[JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378)/[JD

RFR: 8301279: update for deprecated sprintf for management components

2023-01-27 Thread Xue-Lei Andrew Fan
The sprintf is deprecated in Xcode 14 because of security concerns. The issue was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for building failure, and [JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378)/[JDK-8299635](https://bugs.openjdk.org/browse/JDK-8299635

Re: RFR: 8301279: update for deprecated sprintf for management components

2023-01-30 Thread Xue-Lei Andrew Fan
On Mon, 30 Jan 2023 10:23:02 GMT, Kevin Walls wrote: >> The sprintf is deprecated in Xcode 14 because of security concerns. The >> issue was addressed in >> [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for building >> failure, and >> [JDK-8299378](https://bugs.openjdk.org/browse

Re: RFR: 8301279: update for deprecated sprintf for management components

2023-02-13 Thread Xue-Lei Andrew Fan
On Fri, 27 Jan 2023 20:32:35 GMT, Xue-Lei Andrew Fan wrote: > The sprintf is deprecated in Xcode 14 because of security concerns. The issue > was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) > for building failure, and > [JDK-8299378](https://bugs.openjd

Integrated: 8301279: update for deprecated sprintf for management components

2023-02-14 Thread Xue-Lei Andrew Fan
On Fri, 27 Jan 2023 20:32:35 GMT, Xue-Lei Andrew Fan wrote: > The sprintf is deprecated in Xcode 14 because of security concerns. The issue > was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) > for building failure, and > [JDK-8299378](https://bugs.openjd

RFR: 8303527: update for deprecated sprintf for jdk.hotspot.agent

2023-03-02 Thread Xue-Lei Andrew Fan
Hi, May I have this update reviewed? The sprintf is deprecated in Xcode 14 because of security concerns. The issue was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for building failure, and [JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378)/[JDK-8299635](http

Re: RFR: 8303527: update for deprecated sprintf for jdk.hotspot.agent [v2]

2023-03-02 Thread Xue-Lei Andrew Fan
k.org/browse/JDK-8299378)/[JDK-8299635](https://bugs.openjdk.org/browse/JDK-8299635)/[JDK-8301132](https://bugs.openjdk.org/browse/JDK-8301132) > for testing issues . This is a break-down update for sprintf uses in > jdk.hotspot.agent module. > > Thanks, > Xuelei Xue-Lei

Re: RFR: 8303527: update for deprecated sprintf for jdk.hotspot.agent [v2]

2023-03-02 Thread Xue-Lei Andrew Fan
On Thu, 2 Mar 2023 19:31:46 GMT, Chris Plummer wrote: >> Xue-Lei Andrew Fan has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - one more correction >> - correct mistakes > > src/jdk.hotspot.agent/w

Re: RFR: 8303527: update for deprecated sprintf for jdk.hotspot.agent [v3]

2023-03-02 Thread Xue-Lei Andrew Fan
k.org/browse/JDK-8299378)/[JDK-8299635](https://bugs.openjdk.org/browse/JDK-8299635)/[JDK-8301132](https://bugs.openjdk.org/browse/JDK-8301132) > for testing issues . This is a break-down update for sprintf uses in > jdk.hotspot.agent module. > > Thanks, > Xuelei Xue-Lei

Integrated: 8303527: update for deprecated sprintf for jdk.hotspot.agent

2023-03-03 Thread Xue-Lei Andrew Fan
On Thu, 2 Mar 2023 19:17:40 GMT, Xue-Lei Andrew Fan wrote: > Hi, > > May I have this update reviewed? > > The sprintf is deprecated in Xcode 14 because of security concerns. The issue > was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) > for

Re: RFR: 8303527: update for deprecated sprintf for jdk.hotspot.agent [v3]

2023-03-03 Thread Xue-Lei Andrew Fan
On Fri, 3 Mar 2023 18:18:02 GMT, Chris Plummer wrote: > @XueleiFan In the future please get two reviews for all hotspot (and > serviceability) changes. Thanks. Thank you for pointing it out, and the review. - PR: https://git.openjdk.org/jdk/pull/12837

RFR: 8303617: update for deprecated sprintf for jdk.jdwp.agent

2023-03-06 Thread Xue-Lei Andrew Fan
Hi, May I have this update reviewed? The sprintf is deprecated in Xcode 14, and Microsoft Virtual Studio, because of security concerns. The issue was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for building failure, and [JDK-8299378](https://bugs.openjdk.org/browse

Re: RFR: 8303617: update for deprecated sprintf for jdk.jdwp.agent [v2]

2023-03-06 Thread Xue-Lei Andrew Fan
d > [JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378)/[JDK-8299635](https://bugs.openjdk.org/browse/JDK-8299635)/[JDK-8301132](https://bugs.openjdk.org/browse/JDK-8301132) > for testing issues . This is a break-down update for sprintf uses in > jdk.jdwp.agent module. > > T

Re: RFR: 8303617: update for deprecated sprintf for jdk.jdwp.agent [v3]

2023-03-06 Thread Xue-Lei Andrew Fan
d > [JDK-8299378](https://bugs.openjdk.org/browse/JDK-8299378)/[JDK-8299635](https://bugs.openjdk.org/browse/JDK-8299635)/[JDK-8301132](https://bugs.openjdk.org/browse/JDK-8301132) > for testing issues . This is a break-down update for sprintf uses in > jdk.jdwp.agent module. > > T

Re: RFR: 8303617: update for deprecated sprintf for jdk.jdwp.agent [v2]

2023-03-06 Thread Xue-Lei Andrew Fan
On Mon, 6 Mar 2023 20:23:13 GMT, Chris Plummer wrote: > windows/native/libjdwp/linker_md.c also needs its copyright updated. Ooops, I missed this file. Updated. Thanks! - PR: https://git.openjdk.org/jdk/pull/12870

Integrated: 8303617: update for deprecated sprintf for jdk.jdwp.agent

2023-03-08 Thread Xue-Lei Andrew Fan
On Sat, 4 Mar 2023 06:29:20 GMT, Xue-Lei Andrew Fan wrote: > Hi, > > May I have this update reviewed? > > The sprintf is deprecated in Xcode 14, and Microsoft Virtual Studio, because > of security concerns. The issue was addressed in > [JDK-8296812](https://bugs.o

RFR: 8307848: update for deprecated sprintf for jdk.attach

2023-05-10 Thread Xue-Lei Andrew Fan
Hi, May I have this update reviewed? The sprintf is deprecated in Xcode 14, and Microsoft Virtual Studio, because of security concerns. The issue was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for building failure, and [JDK-8299378](https://bugs.openjdk.org/browse

RFR: 8307850: update for deprecated sprintf for jdk.jdi

2023-05-10 Thread Xue-Lei Andrew Fan
Hi, May I have this update reviewed? The sprintf is deprecated in Xcode 14, and Microsoft Virtual Studio, because of security concerns. The issue was addressed in [JDK-8296812](https://bugs.openjdk.org/browse/JDK-8296812) for building failure, and [JDK-8299378](https://bugs.openjdk.org/browse

Integrated: 8307850: update for deprecated sprintf for jdk.jdi

2023-05-11 Thread Xue-Lei Andrew Fan
On Wed, 10 May 2023 18:02:22 GMT, Xue-Lei Andrew Fan wrote: > Hi, > > May I have this update reviewed? > > The sprintf is deprecated in Xcode 14, and Microsoft Virtual Studio, because > of security concerns. The issue was addressed in > [JDK-8296812](https://bugs.o

Integrated: 8307848: update for deprecated sprintf for jdk.attach

2023-05-11 Thread Xue-Lei Andrew Fan
On Wed, 10 May 2023 17:48:04 GMT, Xue-Lei Andrew Fan wrote: > Hi, > > May I have this update reviewed? > > The sprintf is deprecated in Xcode 14, and Microsoft Virtual Studio, because > of security concerns. The issue was addressed in > [JDK-8296812](https://bugs.o

Re: RFR: 8294241: Deprecate URL public constructors

2022-10-26 Thread Xue-Lei Andrew Fan
On Wed, 26 Oct 2022 16:00:56 GMT, Daniel Fuchs wrote: > Deprecate URL constructors. Developers are encouraged to use `java.net.URI` > to parse or construct any URL. > > The `java.net.URL` class does not itself encode or decode any URL components > according to the escaping mechanism defined in

Re: RFR: 8294241: Deprecate URL public constructors

2022-10-26 Thread Xue-Lei Andrew Fan
On Wed, 26 Oct 2022 17:24:59 GMT, Daniel Fuchs wrote: >> src/java.base/share/classes/java/net/URL.java line 852: >> >>> 850: * @since 20 >>> 851: */ >>> 852: public static URL fromURI(URI uri, URLStreamHandler streamHandler) >> >> What do you think to have this method in URI inste