RFR: JDK-8227641: java-options values with spaces are processed incorrectly

2019-08-08 Thread Alexander Matveev
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). - There are no know bugs in how we handle java options with spaces. However, it might be complicated to figure out how to provide such options. Added

Re: RFR: 8229283: StringLatin1 should consistently use CharacterDataLatin1.instance when applicable

2019-08-08 Thread Jim Laskey
+1 > On Aug 8, 2019, at 8:28 AM, Claes Redestad wrote: > > Hi, > > in j.l.StringLatin1 we can and do call CharacterDataLatin1 directly in > some places, which avoids a few indirections. Doing so has no effect on peak > performance, but simplifies the work the JIT needs to do and speeds > up

Re: RFR: JDK-8215446: JPackageCreateInstallerInstallDirTest fails on OLE7

2019-08-08 Thread Alexander Matveev
Looks good then. On 8/8/2019 3:06 PM, Alexey Semenyuk wrote: On 8/8/2019 5:35 PM, Alexander Matveev wrote: Hi Alexey, Do you know what behavior will be if we have two packages which will install into CompanyName/App1 CompanyName/App2 If App1 is removed will App2 also removed? No,

Re: RFR: JDK-8215446: JPackageCreateInstallerInstallDirTest fails on OLE7

2019-08-08 Thread Alexey Semenyuk
On 8/8/2019 5:35 PM, Alexander Matveev wrote: Hi Alexey, Do you know what behavior will be if we have two packages which will install into CompanyName/App1 CompanyName/App2 If App1 is removed will App2 also removed? No, directory structure of App2 will stay intact. With the suggested fix

Re: RFR: JDK-8215446: JPackageCreateInstallerInstallDirTest fails on OLE7

2019-08-08 Thread Alexander Matveev
Hi Alexey, Do you know what behavior will be if we have two packages which will install into CompanyName/App1 CompanyName/App2 If App1 is removed will App2 also removed? Thanks, Alexander On 8/8/2019 8:49 AM, Alexey Semenyuk wrote: Please review the jpackage fix for bug [1] at [2]. This

Re: RFR: JDK-8224788: jpackage fails on OS X when using --runtime-image

2019-08-08 Thread Alexander Matveev
Looks good. On 8/8/2019 5:31 AM, Andy Herrick 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). JDK-8224788: jpackage fails on OS X when using --runtime-image [1]

Re: RFR (XS) 8221307 : String.substring() OOB exception on start index reports improper information

2019-08-08 Thread Ivan Gerasimov
Hi Roger!  Thanks for the comments! On 8/8/19 6:50 AM, Roger Riggs wrote: Hi Ivan, To be consistent with other checks of the index, can you use the checkIndex(index, length) method? The message it produces would be appropriate for both cases. Unfortunately, checkIndex(int, int) wouldn't be

Re: RFR (XS) 8221307 : String.substring() OOB exception on start index reports improper information

2019-08-08 Thread Ivan Gerasimov
Hi Claes! On 8/8/19 6:56 AM, Claes Redestad wrote: Hi, perhaps a stupid question, but why isn't String::substring(int) calling substring(beginIndex, length())? That'd ensure consistent error messages, but otherwise preserve semantics. It's a good point, actually! I suspect that originally

Re: RFR [14] 8217606: LdapContext#reconnect always opens a new connection

2019-08-08 Thread Roger Riggs
Hi Pavel, To your questions... On 8/8/19 11:07 AM, Pavel Rappo wrote: ... 109: "template method" doesn't describe the method well, the method is private and not overridable. update the javadoc. I can see several questions here. Correct me if I'm wrong. The first one is about the use of

RFR: JDK-8215446: JPackageCreateInstallerInstallDirTest fails on OLE7

2019-08-08 Thread Alexey Semenyuk
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). - Add all ascending subdirectories of application installation directory to the package. [1] https://bugs.openjdk.java.net/browse/JDK-8215446 [2]

Re: RFR [14] 8217606: LdapContext#reconnect always opens a new connection

2019-08-08 Thread Pavel Rappo
Roger, answers are inline. > On 7 Aug 2019, at 16:52, Roger Riggs wrote: > > > > BaseLdapServer: > > 100: The new exception should have a message "Unexpected exception" or > "server should no be running"... Fixed. > 158: Is printing the stack trace diagnostic or an error?, the exception

Re: JDK 14 RFR of JDK-8202385: Annotation to mark serial-related fields and methods

2019-08-08 Thread Chris Hegarty
> On 6 Aug 2019, at 21:04, Joe Darcy wrote: > > ... > Revised webev > > http://cr.openjdk.java.net/~darcy/8202385.5/ LGTM. -Chris.

Re: JDK 14 RFR of JDK-8202385: Annotation to mark serial-related fields and methods

2019-08-08 Thread Roger Riggs
Hi Joe, Looks good, thanks for the updates. Roger On 8/6/19 4:04 PM, Joe Darcy wrote: Hi Roger, Revised webev     http://cr.openjdk.java.net/~darcy/8202385.5/ Diff of last two versions below. To ease review, I elected not to reflow the paragraphs at this time to reduce the number of

Re: RFR: JDK-8224788: jpackage fails on OS X when using --runtime-image

2019-08-08 Thread Alexey Semenyuk
Looks good. - Alexey On 8/8/2019 8:31 AM, Andy Herrick 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). JDK-8224788: jpackage fails on OS X when using --runtime-image [1]

Re: RFR (XS) 8221307 : String.substring() OOB exception on start index reports improper information

2019-08-08 Thread Claes Redestad
Hi, perhaps a stupid question, but why isn't String::substring(int) calling substring(beginIndex, length())? That'd ensure consistent error messages, but otherwise preserve semantics. /Claes On 2019-08-08 02:17, Ivan Gerasimov wrote: Hello! The exception thrown by substring(int) may look

Re: RFR (XS) 8221307 : String.substring() OOB exception on start index reports improper information

2019-08-08 Thread Roger Riggs
Hi Ivan, To be consistent with other checks of the index, can you use the checkIndex(index, length) method? The message it produces would be appropriate for both cases. While you are there can you add a space after the comma in lines 3680 and 3691. Is there an appropriate test?  There should

RFR: JDK-8224788: jpackage fails on OS X when using --runtime-image

2019-08-08 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). JDK-8224788: jpackage fails on OS X when using --runtime-image [1] https://bugs.openjdk.java.net/browse/JDK-8224788 [2]

RFR: 8229283: StringLatin1 should consistently use CharacterDataLatin1.instance when applicable

2019-08-08 Thread Claes Redestad
Hi, in j.l.StringLatin1 we can and do call CharacterDataLatin1 directly in some places, which avoids a few indirections. Doing so has no effect on peak performance, but simplifies the work the JIT needs to do and speeds up a variety of operations during startup and warmup.

Re: RFR [14] 8217606: LdapContext#reconnect always opens a new connection

2019-08-08 Thread Chris Yin
Many thanks Pavel for the changes, and thanks Lance, Roger for the reviewing. Yep, let me try to handle some questions from Roger > On 7 Aug 2019, at 11:52 PM, Roger Riggs wrote: > > BaseLdapServer: > > 158: Is printing the stack trace diagnostic or an error?, the exception is > not rethrown