JDK 14 RFR of JDK-8231442 : Suppress warnings on non-serializable instance fields in java.sql.* modules

2019-09-24 Thread Joe Darcy
Hello, Next step in the serialization warnings pre-cleanup is java.sql.* modules. Please review the proposed changes:     JDK-8231442 : Suppress warnings on non-serializable instance fields in java.sql.* modules     http://cr.openjdk.java.net/~darcy/8231442.0/ Several of the writeObject

RandomAccess Interface and List Heirarchy

2019-09-24 Thread Cyrus Vafadari
Hello all, *TLDR: Why doesn't RandomAccess interface extend List?* I'm maintaining a framework that lets developers build plugins, and developers implement a `put(List thingList)` in their plugins. However, I want to guarantee to the implementer that their List will support RandomAccess. I see

Build errors - JDK-8200758-branch

2019-09-24 Thread Scott Hill
Build fails on my CI Window Server 2008 & 2012 agents. I am only able to get it to build on a Windows 10 system. [12:49:04][Step 1/1] ERROR: Build failed for target 'jdk' in configuration 'windows-x86-server-release' (exit code 2) [12:49:05][Step 1/1] [12:49:05][Step 1/1] === Output from failing

Re: RFR: JDK-8230920 : jpackage problems when -input dir contains any files with "cfg" extension.

2019-09-24 Thread Alexander Matveev
Hi Andy, Looks good. Do you think it would be better to write CLI arguments in some internal format instead of just raw dump? It might be better in case if we plan to change CLI between versions and at same time supporting generation of installers for app image using different jpackage

Re: RFR: JDK-8230927 : Wrong arguments set for additional launchers

2019-09-24 Thread Alexander Matveev
Looks good. On 9/24/2019 11:08 AM, Alexey Semenyuk wrote: Looks good. - Alexey On 9/24/2019 1:24 PM, Andy Herrick wrote: Revision 2 or the webrev ( [3] )  removes the comment about `--linux-deb-copyright-file` option., replaces the literal strings with the CLIOptions id's, and adds unit

Re: RFR: jsr166 integration 2019-09

2019-09-24 Thread Martin Buchholz
Frederic, could you figure out how to resolve 8231031: runtime/ReservedStack/ReservedStackTest.java fails after jsr166 refresh https://cr.openjdk.java.net/~martin/webrevs/jdk/jsr166-integration/ReservedStackTest/index.html https://bugs.openjdk.java.net/browse/JDK-8231031 On Mon, Sep 23, 2019 at

Re: RFR(s): 8228580: DnsClient TCP socket timeout

2019-09-24 Thread Pavel Rappo
Milan, I satisfied myself by running the final version of the test some 8k times and then pushed the change. Thanks for your patience and persistence. I saw your question on the net-dev and nio-dev mailing lists. Thanks. -Pavel > On 24 Sep 2019, at 13:41, Milan Mimica wrote: > > Pavel, > >

Why you want a better specification and a fast implementation of Double.toString(double)

2019-09-24 Thread Raffaello Giulietti
Hi, I'd like this community to help me pushing a new spec and the accompanying implementation of Double.toString(double) and Float.toString(float) into the OpenJDK 14 release. All material has already been submitted to this mailing list months ago [2] and passes tier 1 tests. Yet, there

Re: RFR 8221623 : Add StackWalker micro benchmarks to jdk repo

2019-09-24 Thread Mandy Chung
On 9/24/19 1:01 PM, Brent Christian wrote: http://cr.openjdk.java.net/~bchristi/8221623/webrev11/ Looks okay.  Thanks for doing this. Mandy

Re: RFR 8221623 : Add StackWalker micro benchmarks to jdk repo

2019-09-24 Thread Brent Christian
On 9/23/19 4:48 PM, Mandy Chung wrote: I think doing the measurement for one of these would be adequate. StackWalkBench.forEach_AllOpts StackWalkBench.forEach_DefaultOpts StackWalkBench.forEach_HiddenAndReflectFrames OK, reduced to just DefaultOpts. There are a couple of commented

Re: CharsetEncoder.maxBytesPerChar()

2019-09-24 Thread Ulf Zibis
Am 21.09.19 um 00:03 schrieb mark.reinh...@oracle.com: > To avoid this confusion, a more verbose specification might read: > * Returns the maximum number of $otype$s that will be produced for each > * $itype$ of input. This value may be used to compute the worst-case > size > *

Re: RFR(s): 8228580: DnsClient TCP socket timeout

2019-09-24 Thread Chris Hegarty
> On 24 Sep 2019, at 13:41, Milan Mimica wrote: > > Pavel, > > Deal. Handling early returns too: > http://cr.openjdk.java.net/~mmimica/8228580/webrev.05/ LGTM -Chris

Re: RFR: JDK-8230927 : Wrong arguments set for additional launchers

2019-09-24 Thread Alexey Semenyuk
Looks good. - Alexey On 9/24/2019 1:24 PM, Andy Herrick wrote: Revision 2 or the webrev ( [3] )  removes the comment about `--linux-deb-copyright-file` option., replaces the literal strings with the CLIOptions id's, and adds unit test to AddLauncherTest.java [3]

Re: RFR: JDK-8230927 : Wrong arguments set for additional launchers

2019-09-24 Thread Andy Herrick
Revision 2 or the webrev ( [3] )  removes the comment about `--linux-deb-copyright-file` option., replaces the literal strings with the CLIOptions id's, and adds unit test to AddLauncherTest.java [3] http://cr.openjdk.java.net/~herrick/8230927/webrev.02/ /Andy On 9/24/2019 9:19 AM, Alexey

Re: Thread.suspend/resume - any reason not to deprecate forRemoval=true

2019-09-24 Thread mark . reinhold
2019/9/24 8:04:55 -0700, alan.bate...@oracle.com: > Thread.suspend/resume (and the corresponding methods in ThreadGroup) > have been deprecated since 1.2 (1998). I haven't see anything use these > methods in many years. Would anyone care if their deprecation is changed > to forRemoval=true with

Re: [14] RFR: 8230531: API Doc for CharsetEncoder.maxBytesPerChar() should be clearer about BOMs

2019-09-24 Thread Alan Bateman
On 23/09/2019 21:45, naoto.s...@oracle.com wrote: Hello, Please review the fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8230531 Relevant CSR (in draft) and proposed changeset are located at: [CSR]: https://bugs.openjdk.java.net/browse/JDK-8231319 [changeset]:

Thread.suspend/resume - any reason not to deprecate forRemoval=true

2019-09-24 Thread Alan Bateman
Thread.suspend/resume (and the corresponding methods in ThreadGroup) have been deprecated since 1.2 (1998). I haven't see anything use these methods in many years. Would anyone care if their deprecation is changed to forRemoval=true with a view to really removing them in the future? Just to

RE: RFR (L, final): 8218626: Add detailed message to NullPointerException describing what is null.

2019-09-24 Thread Lindenmaier, Goetz
Thanks! Best regards, Goetz > -Original Message- > From: Roger Riggs > Sent: Dienstag, 24. September 2019 15:54 > To: Lindenmaier, Goetz ; Hotspot dev runtime > ; Java Core Libs d...@openjdk.java.net> > Subject: Re: RFR (L, final): 8218626: Add detailed message to >

Re: RFR: JDK-8231277: Adjust Linux application image layout

2019-09-24 Thread Andy Herrick
Looks good. /Andy On 9/20/19 7:57 AM, Alexey Semenyuk wrote: Please review the jpackage fix for bug [1] at [2]. This is a fix for the JDK-8200758-branch branch of the open sandbox repository (jpackage). This fix: - directory layout of Linux app image adjusted to better comply with Linux

Re: RFR: JDK-8231282: Revisit --linux-deb-copyright option

2019-09-24 Thread Andy Herrick
looks good /Andy On 9/23/2019 7:55 PM, Alexey Semenyuk wrote: Please review the jpackage fix for bug [1] at [2]. This is a fix for the JDK-8200758-branch branch of the open sandbox repository (jpackage). This fix: - remove --linux-deb-copyright option. - add tests to verify that placing

Re: RFR (L, final): 8218626: Add detailed message to NullPointerException describing what is null.

2019-09-24 Thread Roger Riggs
Hi Goetz, Looks good. Count me as a (java) Reviewer. Thanks, Roger On 9/24/19 4:13 AM, Lindenmaier, Goetz wrote: Hi Roger, thanks for improving the text! Good point to add @implNote. This webrev includes the fixed comments: http://cr.openjdk.java.net/~goetz/wr19/8218628-exMsg-NPE/19/ Is it

Re: RFR: JDK-8230927 : Wrong arguments set for additional launchers

2019-09-24 Thread Alexey Semenyuk
Andy, Please remove javadoc update about `--linux-deb-copyright-file` option. It will be dropped in https://bugs.openjdk.java.net/browse/JDK-8231277 patch. Line 180: --- if (additional.containsKey("java-optiions")) { --- Looks like a typo. Should be "java-options", not "java-optiions", I

RFR: JDK-8230920 : jpackage problems when -input dir contains any files with "cfg" extension.

2019-09-24 Thread Andy Herrick
Please review the jpackage fix for bug [1] at [2]. This is a fix for the JDK-8200758-branch branch of the open sandbox repository (jpackage). This fix replaces the practice we were using on windows to determine the application name, and name of additional launchers (by looking for ".cfg"

RFR: JDK-8230927 : Wrong arguments set for additional launchers

2019-09-24 Thread Andy Herrick
Please review the jpackage fix for bug [1] at [2]. This is a fix for the JDK-8200758-branch branch of the open sandbox repository (jpackage). This change applies when arguments or java-options are used in an add-launcher properties file. In these cases the arguments or java-options from

Re: RFR(s): 8228580: DnsClient TCP socket timeout

2019-09-24 Thread Milan Mimica
Pavel, Deal. Handling early returns too: http://cr.openjdk.java.net/~mmimica/8228580/webrev.05/ I will ask there about socket timeout semantics. On Tue, 24 Sep 2019 at 12:51, Pavel Rappo wrote: > > Milan, > > Thanks for looking into this. I think you should ask a question on the > expected

Re: RFR: 8231186: Replace html tag foo with javadoc tag {@code foo} in java.base

2019-09-24 Thread Daniel Fuchs
Thanks Julia! It's now pushed. best regards, -- daniel On 24/09/2019 10:50, Julia Boes wrote: Hi, Thanks for the review, Lance and Brent! Changeset: http://cr.openjdk.java.net/~jboes/webrevs/8231186/webrev.04/ Regards, Julia

RE: RFR (L, final): 8218626: Add detailed message to NullPointerException describing what is null.

2019-09-24 Thread Schmelter, Ralf
Hi Goetz, just one thing: >> In NullPointerExceptionTest.java: > > > > It seems you don't have tests for invokeinterface or invokespecial calls to > > cause > > an NPE (e.g. by calling a null interface variable or a private non-static > > method > > of a null objects). > That is because the

Re: RFR(s): 8228580: DnsClient TCP socket timeout

2019-09-24 Thread Pavel Rappo
Milan, Thanks for looking into this. I think you should ask a question on the expected timing semantics and guarantees on net-dev (with maybe a cc to nio-dev). As for our test. I agree with you that we should simply work a possibility of early returns into the check. ... /* The acceptable

Re: RFR: 8231186: Replace html tag foo with javadoc tag {@code foo} in java.base

2019-09-24 Thread Julia Boes
Hi, Thanks for the review, Lance and Brent! Changeset: http://cr.openjdk.java.net/~jboes/webrevs/8231186/webrev.04/ Regards, Julia On 23/09/2019 19:58, Lance Andersen wrote: Hi Julia, I made a quick pass and the changes seem OK On Sep 23, 2019, at 2:17 PM, Julia Boes

RE: RFR (L, final): 8218626: Add detailed message to NullPointerException describing what is null.

2019-09-24 Thread Lindenmaier, Goetz
Hi Roger, thanks for improving the text! Good point to add @implNote. This webrev includes the fixed comments: http://cr.openjdk.java.net/~goetz/wr19/8218628-exMsg-NPE/19/ Is it ok to add you as reviewer (for the java.base part)? Best regards, Goetz. > -Original Message- > From:

Re: RFR(s): 8228580: DnsClient TCP socket timeout

2019-09-24 Thread Milan Mimica
Hi Pavel Wow, I find this awesome. I don't have a Windows machine to play with, but I think I may have found something. The difference is how Java_sun_nio_ch_Net_poll is implemented. On unix it uses poll(2), on Windows it uses select(2). Regarding timeouts, poll() has "wait at least" semantics

RE: RFR (L, final): 8218626: Add detailed message to NullPointerException describing what is null.

2019-09-24 Thread Lindenmaier, Goetz
Hi Remi, thanks for the heads up, I incorporated it in the main webrev: http://cr.openjdk.java.net/~goetz/wr19/8218628-exMsg-NPE/19/ Best regards, Goetz. > -Original Message- > From: fo...@univ-mlv.fr > Sent: Montag, 23. September 2019 18:02 > To: Lindenmaier, Goetz > Cc:

Re: RFR: jsr166 integration 2019-09

2019-09-24 Thread David Holmes
Except when I run it through our test system ReservedStackTest is still failing :( I tested it initially when Fred proposed it and that went fine. It also passes for me locally on Linux. David On 24/09/2019 12:20 pm, David Holmes wrote: Hi Martin, That all seems fine to me. Thanks, David