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

2016-02-03 Thread Iris Clark
: verona-...@openjdk.java.net; core-libs-dev@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion On 03/02/2016 03:17, Iris Clark wrote: > Hi, Mandy. > > Thanks so much for pushing the changeset for the initial > implementation of jdk.Version! > Go

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

2016-02-03 Thread Alan Bateman
On 03/02/2016 03:17, Iris Clark wrote: Hi, Mandy. Thanks so much for pushing the changeset for the initial implementation of jdk.Version! Good to have this in but now we need to decide on where it should live. It's JDK-specific so we'll need it exported by a JDK module rather than java.base.

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

2016-02-02 Thread Mandy Chung
gt; From: Iris Clark > Sent: Monday, January 11, 2016 1:45 PM > To: Iris Clark; Joe Darcy; Mandy Chung; Magnus Ihse Bursie; Roger Riggs; Alan > Bateman > Cc: core-libs-dev@openjdk.java.net; verona-...@openjdk.java.net > Subject: RE: RFR: 8072379: Implement jdk.Version and jdk.OracleV

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

2016-02-02 Thread Iris Clark
-libs-dev@openjdk.java.net; verona-...@openjdk.java.net Subject: RE: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion 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

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

2016-02-02 Thread Iris Clark
or will push the changes for 8072379 soon. Regards, Iris -Original Message- From: Thanh Hong Dai [mailto:hdth...@tma.com.vn] Sent: Tuesday, February 02, 2016 7:08 PM To: Iris Clark; Alan Bateman; core-libs-dev@openjdk.java.net Subject: RE: RFR: 8072379: Implement jdk.Version and jdk.

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

2016-02-02 Thread Thanh Hong Dai
ark [mailto:iris.cl...@oracle.com] Sent: Wednesday, 3 February, 2016 6:16 AM To: Thanh Hong Dai ; Alan Bateman ; core-libs-dev@openjdk.java.net Subject: RE: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion Hi. Thanks again for looking at this change. > The JEP & implementation allows -$O

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

2016-02-02 Thread Iris Clark
tma.com.vn] Sent: Monday, February 01, 2016 11:48 PM To: Iris Clark; Alan Bateman; core-libs-dev@openjdk.java.net Subject: RE: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion Dear Iris, On closer look, there seems to be some conflicting definition of version string. In JEP: http://op

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

2016-02-01 Thread Thanh Hong Dai
Iris Clark [mailto:iris.cl...@oracle.com] Sent: Tuesday, 2 February, 2016 12:51 PM To: Thanh Hong Dai ; Alan Bateman ; core-libs-dev@openjdk.java.net; verona-...@openjdk.java.net Subject: RE: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion Hi, Hong. Thanks again for looking closely at th

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

2016-02-01 Thread Iris Clark
atching `([-a-zA-Z0-9.]+)` --- Additional Thanks again for the recommendations. Regards, iris -Original Message- From: Thanh Hong Dai [mailto:hdth...@tma.com.vn] Sent: Wednesday, January 13, 2016 7:53 PM To: Iris Clark; Alan Bateman; core-libs-dev@openjdk.java.net; verona-...@openjdk.jav

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

2016-01-28 Thread Iris Clark
Hi, Joe. > I suggest changing the class-level javadoc discussing comparisons > to defer to the various compare methods. It would be helpful to > not which compare methods are consistent with equals and which > are not. I've reworked the class and method javadoc for the comparison methods so t

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: 8072379: Implement jdk.Version and jdk.OracleVersion

2016-01-14 Thread Iris Clark
openjdk.java.net; verona-...@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion 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 vac

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

2016-01-14 Thread Magnus Ihse Bursie
I'd like to wrap up this work for the initial implementation of jdk.Version soon. Regards, iris -Original Message- From: Iris Clark Sent: Friday, December 18, 2015 1:55 PM To: Joe Darcy; Mandy Chung Cc: core-libs-dev@openjdk.java.net; verona-...@openjdk.java.net Subject: RE: RFR:

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

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 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-13 Thread joe darcy
Hi Daniel, On 1/13/2016 1:01 AM, Daniel Fuchs wrote: Hi Joe, On 1/13/16 2:06 AM, Joseph D. Darcy wrote: Hi Iris, Catching up on old reviews, the regular expression for versions is given as ^[1-9][0-9]*(((\.0)*\.[1-9][0-9]*)*)*$ Is this equivalent to ^[1-9][0-9]*(\.[0-9])* Ir

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

2016-01-13 Thread Iris Clark
om: Mandy Chung Sent: Tuesday, January 12, 2016 2:26 PM To: Iris Clark Cc: Mandy Chung; Joe Darcy; Magnus Ihse Bursie; Roger Riggs; Alan Bateman; core-libs-dev; verona-...@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion > On Jan 11, 2016, at 1:44 PM, Iris

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

2016-01-13 Thread Thanh Hong Dai
wse/JDK-8144062 Thanks, iris [0] http://hg.openjdk.java.net/jdk9/dev/rev/1bee5efa73e3 -Original Message- From: Alan Bateman Sent: Tuesday, January 12, 2016 7:41 AM To: Iris Clark; core-libs-dev@openjdk.java.net; verona-...@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.O

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

2016-01-13 Thread Iris Clark
net/jdk9/dev/rev/1bee5efa73e3 -Original Message- From: Alan Bateman Sent: Tuesday, January 12, 2016 7:41 AM To: Iris Clark; core-libs-dev@openjdk.java.net; verona-...@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion On 11/01/2016 21:44, Iris Clark wrote: &

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

2016-01-13 Thread Daniel Fuchs
Hi Joe, On 1/13/16 2:06 AM, Joseph D. Darcy wrote: Hi Iris, Catching up on old reviews, the regular expression for versions is given as ^[1-9][0-9]*(((\.0)*\.[1-9][0-9]*)*)*$ Is this equivalent to ^[1-9][0-9]*(\.[0-9])* Iris's regexp will disallow trailing .0 9.0.1 will match,

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

2016-01-12 Thread Joseph D. Darcy
ginal Message- From: Iris Clark Sent: Friday, December 18, 2015 1:55 PM To: Joe Darcy; Mandy Chung Cc: core-libs-dev@openjdk.java.net; verona-...@openjdk.java.net Subject: RE: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion Hi, Joe. Thanks for the review comments. http://c

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

2016-01-12 Thread Mandy Chung
> On Jan 11, 2016, at 1:44 PM, 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/

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

2016-01-12 Thread Alan Bateman
On 11/01/2016 21: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

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

2016-01-11 Thread Iris Clark
java.net Subject: RE: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion Hi, Joe. Thanks for the review comments. >>> http://cr.openjdk.java.net/~irisa/verona/8072379/webrev.1/ > Is the intention that downstream JDK distributions, such as IcedTea, > whether based on

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

2015-12-18 Thread Iris Clark
Clark Cc: core-libs-dev@openjdk.java.net; verona-...@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion PS If the concepts the two classes Version and OracleVersion are trying to capture is a "Vendor-Version" then perhaps that can be surfaced more direct

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

2015-12-18 Thread Iris Clark
s for equals*() and compareTo*() to take advantage of code re-use. Thanks, iris -Original Message- From: joe darcy Sent: Monday, November 30, 2015 5:33 PM To: Magnus Ihse Bursie; Iris Clark; core-libs-dev@openjdk.java.net Cc: verona-...@openjdk.java.net Subject: Re: RFR: 8072379: Impl

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

2015-12-18 Thread Iris Clark
Hi, Magnus. Thanks for the review comments. >> http://cr.openjdk.java.net/~iris/verona/8072379/webrev.1/ > I thought the end agreement was that the + should always be present even if > build was empty, if opt was present but not pre. That is, "9-foo" > should unambigiously parse as vnum=9

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

2015-12-18 Thread Iris Clark
Hi. Updated webrev and JavaDoc: Webrev http://cr.openjdk.java.net/~iris/verona/8072379/webrev.2/ JavaDoc http://cr.openjdk.java.net/~iris/verona/8072379/doc.2/jdk/Version.html Thanks, iris PS: Please note that I'll be out the week of 21 December, back on 4 January. Access to e

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

2015-12-18 Thread Iris Clark
lity it provided, access to the fourth element of the version number, is trivially accessed by existing methods in jdk.Version. jdk.Version is now final, with a private constructor. An updated webrev is forthcoming. Regards, iris -Original Message- From: Roger Riggs Sent: Wednesday, Nove

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

2015-12-18 Thread Iris Clark
2015 4:18 PM To: Mandy Chung; Iris Clark Cc: verona-...@openjdk.java.net; core-libs-dev@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion PPS Perhaps this is already planned as future work, but it might be a kindness to those analyzing JDK version strings if

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

2015-12-18 Thread Iris Clark
Hi, Joe. Thanks for the review comments. >>> http://cr.openjdk.java.net/~irisa/verona/8072379/webrev.1/ > Is the intention that downstream JDK distributions, such as > IcedTea, whether based on OpenJDK or otherwise, would provide > their own specialization of the jdk.Version class? No. D

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

2015-11-30 Thread joe darcy
Another comment below... On 11/27/2015 6:36 AM, Magnus Ihse Bursie wrote: On 2015-11-25 02:54, Iris Clark wrote: Hi. Please review the new classes jdk.Version and jdk.OracleVersion. These are simple Java APIs to parse, validate, and compare version numbers. Bug 8072379: Implement

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

2015-11-29 Thread joe darcy
PPS Perhaps this is already planned as future work, but it might be a kindness to those analyzing JDK version strings if there was a class that did a "best effort" at understanding Sun and Oracle JDK version strings pre-Verona to those post-Verona. In other words, a version class where ne

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

2015-11-27 Thread Magnus Ihse Bursie
On 2015-11-25 02:54, Iris Clark wrote: Hi. Please review the new classes jdk.Version and jdk.OracleVersion. These are simple Java APIs to parse, validate, and compare version numbers. Bug 8072379: Implement jdk.Version and jdk.OracleVersion https://bugs.openjdk.java.net/browse/JD

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

2015-11-25 Thread joe darcy
PS If the concepts the two classes Version and OracleVersion are trying to capture is a "Vendor-Version" then perhaps that can be surfaced more directly in the API. That is, if the basic notion is to interpret a version string in a way appropriate to and specialized for a given vendor of the JD

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

2015-11-25 Thread Iris Clark
iris -Original Message- From: Mandy Chung Sent: Wednesday, November 25, 2015 8:48 AM To: Iris Clark Cc: core-libs-dev@openjdk.java.net; verona-...@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion > On Nov 24, 2015, at 5:54 PM, Iris Clark wrote: &g

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

2015-11-25 Thread Mandy Chung
> On Nov 24, 2015, at 5:54 PM, Iris Clark wrote: > > Hi. > > Please review the new classes jdk.Version and jdk.OracleVersion. These are > simple Java APIs to parse, validate, and compare version numbers. > > Webrev > >http://cr.openjdk.java.net/~iris/verona/8072379/webrev.1/ This looks

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

2015-11-25 Thread joe darcy
Hello, On 11/25/2015 8:48 AM, Mandy Chung wrote: On Nov 24, 2015, at 5:54 PM, Iris Clark wrote: Hi. Please review the new classes jdk.Version and jdk.OracleVersion. These are simple Java APIs to parse, validate, and compare version numbers. Webrev http://cr.openjdk.java.net/~irisa/ve

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

2015-11-25 Thread Roger Riggs
Hi Iris, I see the JEP says JDK specific, but does that rule out putting the version API in a Java.* package? It would support the values found in the java.version, etc properties. Perhaps as an nested class of System or Runtime? Version.java: Line 213: Seems a bit wasteful to reparse the st

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

2015-11-25 Thread Alan Bateman
On 25/11/2015 01:54, Iris Clark wrote: Hi. Please review the new classes jdk.Version and jdk.OracleVersion. These are simple Java APIs to parse, validate, and compare version numbers. Is jdk.OracleVersion really intended to be pushed to OpenJDK? Should it be final? There are few imports at

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

2015-11-25 Thread Iris Clark
Bateman Sent: Wednesday, November 25, 2015 4:02 AM To: Iris Clark; core-libs-dev@openjdk.java.net Cc: verona-...@openjdk.java.net Subject: Re: RFR: 8072379: Implement jdk.Version and jdk.OracleVersion On 25/11/2015 01:54, Iris Clark wrote: > Hi. > > Please review the new classes jdk.Vers