Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion

2016-01-14 Thread Dmitry Samersoff
Iris, Did you consider to split version string into array of groups first (using String.split()), then validate each group separately? It may make the code better readable and more resilient to possible future changes. -Dmitry On 2015-11-25 04:54, Iris Clark wrote: > Hi. > > Please review the

Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion

2016-01-14 Thread Victor Polischuk
Hi Iris, Do you consider an option to let community reuse JDK versioning style for their own purposes. Probably defining an interface with basic default methods which can be extended by various libraries to provide unified way to gather version information from MANIFEST.MF, ClassLoader's jars a

Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion

2016-01-14 Thread Alan Bateman
On 13/01/2016 21:54, Iris Clark wrote: : This diff has been applied to modules.xml: This looks okay. : When this came up earlier, I filed this bug to track finding a more appropriate module for jdk.Version: 8144062: Determine appropriate module for jdk.Version https://bugs.openj

RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread Chris Hegarty
The "stopThread” RuntimePermission is granted by default. The Thread.stop methods have been deprecated for more than 15 years. It seems reasonable, in a major release, to remove the default grant of stopThread. diff --git a/src/java.base/share/conf/security/java.policy b/src/java.base/share/conf

Re: RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread Alan Bateman
On 14/01/2016 10:05, Chris Hegarty wrote: The "stopThread” RuntimePermission is granted by default. The Thread.stop methods have been deprecated for more than 15 years. It seems reasonable, in a major release, to remove the default grant of stopThread. This looks okay to me, we should have droppe

Re: RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread David Holmes
Hi Chris, I would have expected some tests to need modifying here (or other places!). David On 14/01/2016 8:05 PM, Chris Hegarty wrote: The "stopThread” RuntimePermission is granted by default. The Thread.stop methods have been deprecated for more than 15 years. It seems reasonable, in a major

Re: RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread Chris Hegarty
On 14 Jan 2016, at 10:37, David Holmes wrote: > Hi Chris, > > I would have expected some tests to need modifying here (or other places!). I haven’t seen any test failures resulting from this change ( not sure if that is a good or a bad thing! ). Though, there were several implementation bugs t

RFR(S): 8147078: MethodHandles.catchException does not enforce Throwable subtype

2016-01-14 Thread Michael Haupt
Dear all, please review this fix. Bug: https://bugs.openjdk.java.net/browse/JDK-8147078 Webrev: http://cr.openjdk.java.net/~mhaupt/8147078/webrev.00 Unlike MethodHandles.throwException, MethodHandles.catchException does not enforce that the passed exception type is indeed a subtype of Throwable.

Re: RFR(S): 8147078: MethodHandles.catchException does not enforce Throwable subtype

2016-01-14 Thread Sundararajan Athijegannathan
+1 -Sundar On 1/14/2016 4:52 PM, Michael Haupt wrote: Dear all, please review this fix. Bug: https://bugs.openjdk.java.net/browse/JDK-8147078 Webrev: http://cr.openjdk.java.net/~mhaupt/8147078/webrev.00 Unlike MethodHandles.throwException, MethodHandles.catchException does not enforce that t

Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion

2016-01-14 Thread Magnus Ihse Bursie
On 2016-01-11 22:44, Iris Clark wrote: Hi, Joe, Roger, Alan, Magnus, and Mandy. At the end of December (shortly before the Christmas/Winter break and my vacation), I provided responses to your messages and an updated webrev: http://cr.openjdk.java.net/~iris/verona/8072379/webrev.2/ I didn't

RFR: JDK-8144988: Unexpected timezone returned after parsing a date

2016-01-14 Thread Ramanand Patil
Hi all, Please review the fix for bug: https://bugs.openjdk.java.net/browse/JDK-8144988 Webrev: http://cr.openjdk.java.net/~rpatil/8141243/webrev.00 This is basically a backport of JDK9 bug: https://bugs.openjdk.java.net/browse/JDK-8141243 JDK9 changeset(for reference): http://hg.openjdk.

Re: RFR(S): 8147078: MethodHandles.catchException does not enforce Throwable subtype

2016-01-14 Thread Paul Sandoz
> On 14 Jan 2016, at 12:22, Michael Haupt wrote: > > Dear all, > > please review this fix. > Bug: https://bugs.openjdk.java.net/browse/JDK-8147078 > Webrev: http://cr.openjdk.java.net/~mhaupt/8147078/webrev.00 > > Unlike MethodHandles.throwException, MethodHandles.catchException does not > en

Re: RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread Sean Mullan
Looks good to me. --Sean On 01/14/2016 05:05 AM, Chris Hegarty wrote: The "stopThread” RuntimePermission is granted by default. The Thread.stop methods have been deprecated for more than 15 years. It seems reasonable, in a major release, to remove the default grant of stopThread. diff --git a/

Re: RFR: JDK-8145549 Add support for Visual Studio 2015 Community edition

2016-01-14 Thread Magnus Ihse Bursie
On 2015-12-18 15:11, Wang Weijun wrote: Hi Vinnie I take a look and it includes a change for src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp in the Java_sun_security_mscapi_KeyStore_getKeyLength() function. It seems there is no sun.security.mscapi.KeyStore#getKeyLength on the j

Re: RFR: JDK-8145549 Add support for Visual Studio 2015 Community edition

2016-01-14 Thread Magnus Ihse Bursie
On 2016-01-05 03:25, Kim Barrett wrote: On Dec 18, 2015, at 7:41 PM, Kim Barrett wrote: On Dec 16, 2015, at 8:50 AM, Magnus Ihse Bursie wrote: Bug: https://bugs.openjdk.java.net/browse/JDK-8145549 WebRev: http://cr.openjdk.java.net/~ihse/JDK-8145549-vs2015-community-edition/webrev.01 /Magn

RE: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion

2016-01-14 Thread Iris Clark
Hi, Magnus. Thanks for taking the time to look at this again. > I noted that your java source file had a lot of initial tabs instead of > spaces. > I'm not sure if we have any code guidelines about this, jcheck prevents tabs in comments and source. I remove them, one of my editors adds them

Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion

2016-01-14 Thread Mandy Chung
> On Jan 13, 2016, at 9:27 PM, Iris Clark wrote: > > These are the diffs to address both of your comments: > > $ diff Version.java_save Version.java > 28a29,30 >> import java.security.AccessController; >> import java.security.PrivilegedAction; > 154,155d155 > < * @see http://openjdk.java.net/

Re: RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread Mandy Chung
> On Jan 14, 2016, at 2:05 AM, Chris Hegarty wrote: > > The "stopThread” RuntimePermission is granted by default. The Thread.stop > methods have been deprecated for more than 15 years. It seems reasonable, > in a major release, to remove the default grant of stopThread. +1 to remove "stopThread

Re: RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread Chris Hegarty
On 14 Jan 2016, at 16:52, Mandy Chung wrote: >> On Jan 14, 2016, at 2:05 AM, Chris Hegarty wrote: >> >> The "stopThread” RuntimePermission is granted by default. The Thread.stop >> methods have been deprecated for more than 15 years. It seems reasonable, >> in a major release, to remove the def

Re: RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread Mandy Chung
> On Jan 14, 2016, at 9:19 AM, Chris Hegarty wrote: > >> There are existing tests whose grants this "stopThread” RuntimePermission >> that may not be needed for the test. The test policy likely copies that >> from the default system java.policy. We should update these test policy as >> well

Re: RFR [9] 7067728: Remove stopThread default java.policy

2016-01-14 Thread Chris Hegarty
On 14 Jan 2016, at 17:29, Mandy Chung wrote: > >> On Jan 14, 2016, at 9:19 AM, Chris Hegarty wrote: >> >>> There are existing tests whose grants this "stopThread” RuntimePermission >>> that may not be needed for the test. The test policy likely copies that >>> from the default system java.

Re: RFR[9u-dev] 8130425: libjvm crash due to stack overflow in executables with 32k tbss/tdata

2016-01-14 Thread Martin Buchholz
The process grim reaper ends up being the first point of failure since it tries not to waste the user's memory and it's in a core library, but in principle it's not special. I think a more general workaround would be to add a hotspot flag that would add a memory safety zone to all threads. If it'

RE: RFR 8124977 cmdline encoding challenges on Windows

2016-01-14 Thread Martin Sawicki
Thanks for the feedback. Investigating the regression failure. We'll get back as soon as we figure this out. (and yes, we'll run this through some localized Windows VMs) Cheers -Original Message- From: Kumar Srinivasan [mailto:kumar.x.sriniva...@oracle.com] Sent: Tuesday, January 12

RFR [9]: Remove sun.misc.ClassFileTransformer.

2016-01-14 Thread Chris Hegarty
sun.misc.ClassFileTransformer has not been used since its hooks were removed in JDK 8, see 8009645 [1]. It is now time to remove the class itself. hg rm src/java.base/share/classes/sun/misc/ClassFileTransformer.java -Chris. [1] https://bugs.openjdk.java.net/browse/JDK-8009645

Re: RFR [9]: Remove sun.misc.ClassFileTransformer.

2016-01-14 Thread Mandy Chung
> On Jan 14, 2016, at 11:53 AM, Chris Hegarty wrote: > > sun.misc.ClassFileTransformer has not been used since its hooks were > removed in JDK 8, see 8009645 [1]. It is now time to remove the class > itself. > > hg rm src/java.base/share/classes/sun/misc/ClassFileTransformer.java +1 Mandy

Re: RFR [9]: Remove sun.misc.ClassFileTransformer.

2016-01-14 Thread Alan Bateman
On 14/01/2016 19:53, Chris Hegarty wrote: sun.misc.ClassFileTransformer has not been used since its hooks were removed in JDK 8, see 8009645 [1]. It is now time to remove the class itself. hg rm src/java.base/share/classes/sun/misc/ClassFileTransformer.java Got for it. If you look at the histo

Re: RFR: JDK-8144988: Unexpected timezone returned after parsing a date

2016-01-14 Thread Naoto Sato
Looks good to me. Naoto On 1/14/16 4:21 AM, Ramanand Patil wrote: Hi all, Please review the fix for bug: https://bugs.openjdk.java.net/browse/JDK-8144988 Webrev: http://cr.openjdk.java.net/~rpatil/8141243/webrev.00 This is basically a backport of JDK9 bug: https://bugs.openjdk.java.net/brow

Re: RFR: JDK-8145549 Add support for Visual Studio 2015 Community edition

2016-01-14 Thread Wang Weijun
> On Jan 14, 2016, at 11:00 PM, Magnus Ihse Bursie > wrote: > > On 2015-12-18 15:11, Wang Weijun wrote: >> Hi Vinnie >> >> I take a look and it includes a change for >> src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp in the >> Java_sun_security_mscapi_KeyStore_getKeyLength() f

Re: RFR[9u-dev] 8130425: libjvm crash due to stack overflow in executables with 32k tbss/tdata

2016-01-14 Thread David Holmes
On 15/01/2016 4:59 AM, Martin Buchholz wrote: The process grim reaper ends up being the first point of failure since it tries not to waste the user's memory and it's in a core library, but in principle it's not special. I think a more general workaround would be to add a hotspot flag that would

Re: RFR: JDK-8144988: Unexpected timezone returned after parsing a date

2016-01-14 Thread Masayoshi Okutsu
Hi Ramanand, test/java/text/Format/DateFormat/Bug8141243.java: 28 * @run main Bug8141243 29 * @run main/othervm -Djava.locale.providers=COMPAT Bug8141243 "COMPAT" is a new name of "JRE" in JDK 9. It's not supported in 8u. I think COMPAT is slightly ignored and that it becomes the same th

Clarification of BaseStream.onClose() behavior

2016-01-14 Thread Tagir F. Valeev
Hello! Current documentation for BaseStream.onClose() does not specify explicitly how the stream would behave if additional close handlers are registered after the stream is consumed or even closed. The implementation actually allows registering the additional close handlers after consumption or c