Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Daniel Fuchs
Hi Jason, On 18/01/2018 21:19, Jason Mehrens wrote: Daniel, As long as the org.apache.juli.ClassLoaderLogManager overrides getProperty it shouldn't really matter what the value format is in the file as long as it is translated on return. Is there a code path in j.u.l.LogManager that doesn't c

RE: RFR(XS): 8195663: jdk/tools/launcher/HelpFlagsTest.java fails with java.lang.AssertionError: HelpFlagsTest failed:

2018-01-19 Thread Lindenmaier, Goetz
Hi, this webrev adds a real test case for javapackager. I also removed unused variable dontExecuteWithWrongFlags. http://cr.openjdk.java.net/~goetz/wr18/8195663-fixHelpTest/webrev.03/ Feel free to use this change (webrev03) or http://cr.openjdk.java.net/~goetz/wr18/8195663-fixHelpTest/webrev.02/

Re: RFR(XS): 8195663: jdk/tools/launcher/HelpFlagsTest.java fails with java.lang.AssertionError: HelpFlagsTest failed:

2018-01-19 Thread Kumar Srinivasan
Hello, Posting this to core-libs-dev. Please review http://cr.openjdk.java.net/~goetz/wr18/8195663-fixHelpTest/webrev.02/ which excludes the Oracle proprietary tools from the test. I can not verify this. Wouldn't a whitelist work better here than a blacklist? Other distributions might add ot

The new optimized version of Dual-Pivot Quicksort

2018-01-19 Thread Vladimir Yaroslavskiy
Hi team, In Sept 2009 Josh Bloch, Jon Bentley and I introduced new sorting algorithm, Dual-Pivot Quicksort, for primitives in JDK 7 and later I suggested several improvements of Dual-Pivot Quicksort, which were integrated into JDK 8. Now I have more optimized and faster version of Dual-Pivot Qui

RE: RFR(XS): 8195663: jdk/tools/launcher/HelpFlagsTest.java fails with java.lang.AssertionError: HelpFlagsTest failed:

2018-01-19 Thread Lindenmaier, Goetz
Hi, I understand the effects of a whitelist. But the test is just intended to dig up tools that don't adhere to the CSR. It's easy enough to fix if you add a tool of yourself, as you can see in this change. Thanks for testing webrev 03. Feel free to push it if it solves your problems in case it'

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Daniel Fuchs
Hi, For the record, I updated the JBS issue [1] with Jason's suggestion and asked to get feedback from the submitter. best regards, -- daniel [1] https://bugs.openjdk.java.net/browse/JDK-8195096 On 19/01/2018 10:13, Daniel Fuchs wrote: Hi Jason, On 18/01/2018 21:19, Jason Mehrens wrote: Da

Re: Clarification for adding classes shipped with JDK to sun.rmi.registry.registryFilter property in java.security file

2018-01-19 Thread Roger Riggs
Hi Vipin, A couple of suggestions to make working with serialization filters easier. JEP 290 enabled logging of filtering actions by setting java.io.serialization.level =  FINEST. Add that to the logging.properties and supply it on the command line with "-Djava.util.logging.config.file=logging

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Jason Mehrens
Daniel, Looking at: https://github.com/apache/tomcat/blob/trunk/java/org/apache/juli/ClassLoaderLogManager.java it looks like code in "readConfiguration(InputStream, ClassLoader)" does the digit translation. The tomcat developers should be able to move some of that code to CLLM.getProperty to

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Jason Mehrens
Daniel, Double check me on this but, I think I've found the source of why the error occurs on JDK9 and not JDK8. In https://bugs.openjdk.java.net/browse/JDK-8191033 the new code should have been added to initializeGlobalHandlers. That would make the read of ".handers" lazy and keep the read of

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Mark Thomas
On 19/01/18 14:22, Daniel Fuchs wrote: > Hi, > > For the record, I updated the JBS issue [1] with Jason's suggestion > and asked to get feedback from the submitter. Providing feedback, as requested. Thanks for looking at this so quickly. The speedy response is appreciated. I did look to try and

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Daniel Fuchs
Hi Jason, I'm afraid the issue is more subtle than that. ".handler" has never been handled lazily - it was also eagerly called in 8. What changes is that in JDK 9, in ensureLogManagerInitialized(), I moved the creation of the RootLogger just before calling the call to readPrimordialConfiguration

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Daniel Fuchs
Hi Mark, Would it be possible for you to call super.getProperty() when you want to see the 'raw' value, and this.getProperty() when you want to see the 'corrected' value? best regards, -- daniel On 19/01/2018 17:34, Mark Thomas wrote: On 19/01/18 14:22, Daniel Fuchs wrote: Hi, For the recor

Re: RFR 8139206: Add InputStream readNBytes(int len)

2018-01-19 Thread Roger Riggs
Hi Brian, Looks good, A pre-existing typo:     line 67 "{@code skip()}" should be "{@code skip(*long*)}". Since the public readNBytes suffices for readAllBytes, I would rename the private readAtMostNBytes to readNBytes and avoid the duplication of javadoc. Keeping the existing readAllBytes b

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Mark Thomas
On 19/01/18 19:25, Daniel Fuchs wrote: > Hi Mark, > > Would it be possible for you to call super.getProperty() > when you want to see the 'raw' value, and > this.getProperty() when you want to see the 'corrected' > value? Hi Daniel, I see where you are coming from but I don't think so. Jason ma

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Mark Thomas
On 19/01/18 20:14, Mark Thomas wrote: > Thanks to both of you for the hints that have got me thinking in new > directions for a workaround. Thanks again for the hints. I have a work-around that seems to work: https://svn.apache.org/viewvc?view=revision&revision=1821708 It feels a bit hacky. I'

Re: [JDK 11] RFR: 8195096: Exception printed on console with custom LogManager on starting Apache Tomcat

2018-01-19 Thread Jason Mehrens
Not my call but adding addInitialRootLoggerHandlers() seems too much like a private detail that would be forever published as part of the public API. I would rather have have a protected reportError added to LogManager and redirect all internal errors from directly calling System.err to that met