RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Aleksey Shipilev
Hi, Please review this tiny update, that puts @since 9 tags over new Indify String Concat JDK APIs: http://cr.openjdk.java.net/~shade/8148730/webrev.01/ Cheers, -Aleksey

Re: [PING] PoC for JDK-4347142: Need method to set Password protection to Zip entries

2016-02-01 Thread KUBOTA Yuji
Hi Sherman and all, Could you please let know your thought and the past case about AES? Thanks, Yuji 2016-01-08 0:01 GMT+09:00 KUBOTA Yuji : > Hi Sherman, > > Thank you for sharing! > > 2016-01-07 4:04 GMT+09:00 Xueming Shen : >> The reason that I'm not convinced that we really need a public in

Re: RFR 9: 8146773 java/lang/ref/CleanerTest.java CleanerTest.testRefSubtypes() fails

2016-02-01 Thread Daniel Fuchs
Hi Roger, Looks good to me - but I'd suggest to call fullGC at least once before waiting on the semaphore (e.g. add a call to whitebox.fullGC() when entering checkCleaned() before line 285). That might maximize the chances that the referred object will be GC'ed before you start waiting on the sem

Re: RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Andrej Golovnin
Hi Aleksej, is it really needed to add the "@since 9" tag to the methods/constructors when the whole class is since JDK 9? As far as I know the @since tag should be only added to class members introduced in a later version than the class. Best regards, Andrej Golovnin On Mon, Feb 1, 2016 at 10:2

Re: RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Aleksey Shipilev
Hi, I don't know, you tell me -- you have the tools that enforce @since-ness! Certainly, we can put @since on classes only, if that is acceptable. -Aleksey On 02/01/2016 12:32 PM, Andrej Golovnin wrote: > Hi Aleksej, > > is it really needed to add the "@since 9" tag to the > methods/constructor

Re: RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Alan Bateman
On 01/02/2016 09:35, Aleksey Shipilev wrote: Hi, I don't know, you tell me -- you have the tools that enforce @since-ness! Certainly, we can put @since on classes only, if that is acceptable. -Aleksey @since 9 on the class should be sufficient here. If it becomes necessary to add methods in

Re: RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Andrej Golovnin
Hi Aleksej, > I don't know, you tell me -- you have the tools that enforce > @since-ness! Certainly, we can put @since on classes only, if that is > acceptable. I don't have such tools. But when I write JavaDocs I try to follow the recommendations from this article: http://www.oracle.com/technet

Re: RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Aleksey Shipilev
On 02/01/2016 12:44 PM, Andrej Golovnin wrote: >> I don't know, you tell me -- you have the tools that enforce >> @since-ness! Certainly, we can put @since on classes only, if that is >> acceptable. > > I don't have such tools. Apologies, I confused you with another Andrey :) Sure, let's do cla

Re: RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Alan Bateman
On 01/02/2016 09:56, Aleksey Shipilev wrote: : Sure, let's do class-only: http://cr.openjdk.java.net/~shade/8148730/webrev.02/ Looks good.

Re: RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Andrej Golovnin
> Apologies, I confused you with another Andrey :) > > Sure, let's do class-only: > http://cr.openjdk.java.net/~shade/8148730/webrev.02/ No problem, Aleksey. Looks much better now. :) Best regards, Andrej Golovnin

Re: RFR (XS) 8148730: Add @since tags in new String concat APIs

2016-02-01 Thread Aleksey Shipilev
On 02/01/2016 01:03 PM, Alan Bateman wrote: > On 01/02/2016 09:56, Aleksey Shipilev wrote: >> : >> >> Sure, let's do class-only: >>http://cr.openjdk.java.net/~shade/8148730/webrev.02/ >> > Looks good. Thanks guys, pushed. -Aleksey

Re: RFR 9: 8146773 java/lang/ref/CleanerTest.java CleanerTest.testRefSubtypes() fails

2016-02-01 Thread Roger Riggs
Hi Daniel, On 2/1/2016 4:24 AM, Daniel Fuchs wrote: Hi Roger, Looks good to me - but I'd suggest to call fullGC at least once before waiting on the semaphore (e.g. add a call to whitebox.fullGC() when entering checkCleaned() before line 285). That might maximize the chances that the referred ob

Re: RFR 9: 8146773 java/lang/ref/CleanerTest.java CleanerTest.testRefSubtypes() fails

2016-02-01 Thread Daniel Fuchs
On 01/02/16 15:47, Roger Riggs wrote: The number of cycles was scaled by the timeoutFactor but it is more intuitive to scale the timeout itself. checkCleaned is invoked for cases where the cleanup function will not be called so increasing the timeout will just increase the running time of the te

RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread Roger Riggs
Please review an API addition to handle signals such as SIGINT, SIGHUP, and SIGTERM. This JEP 260 motivated alternative to sun.misc.Signal supports the use case for interactive applications that need to handle Control-C and other signals. The new java.util.Signal class provides a settable prima

RFR 9: 8143016 : java/time/test/java/time/TestClock_System.java failed intermittently

2016-02-01 Thread Roger Riggs
Please review a test improvement to address an intermittent test failure in the java.time System Clock test for microsecond support. webrev: http://cr.openjdk.java.net/~rriggs/webrev-micros-8143016/ Issue: https://bugs.openjdk.java.net/browse/JDK-8143016 Thanks, Roger

Re: RFR 9: 8143016 : java/time/test/java/time/TestClock_System.java failed intermittently

2016-02-01 Thread Lance Andersen
Looks OK Roger. On Feb 1, 2016, at 11:41 AM, Roger Riggs wrote: > Please review a test improvement to address an intermittent test failure in > the java.time System Clock test for microsecond support. > > webrev: > http://cr.openjdk.java.net/~rriggs/webrev-micros-8143016/ > > Issue: > https:/

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread Chris Hegarty
Thank you for taking this on Roger. An initial question to help my understanding. [ I think I need to understand this, before I can comment further on the API ] I'm a little confused about how the default handler is supposed to work, so I looked at the implementation and become even more confuse

Re: RFR 9: 8143016 : java/time/test/java/time/TestClock_System.java failed intermittently

2016-02-01 Thread Stephen Colebourne
Fine by me Stephen On 1 February 2016 at 16:41, Roger Riggs wrote: > Please review a test improvement to address an intermittent test failure in > the java.time System Clock test for microsecond support. > > webrev: > http://cr.openjdk.java.net/~rriggs/webrev-micros-8143016/ > > Issue: > http

Re: RFR - 8132734: java.util.jar.* changes to support multi-release jar files

2016-02-01 Thread Steve Drach
> On Jan 30, 2016, at 12:00 AM, Alan Bateman wrote: > > > On 29/01/2016 17:39, Paul Sandoz wrote: >> : >> Alan’s point is that traversing using entries()/stream() always returns the >> versioned entries (if any) rather than all entries, thus in a sense filters. >> >> My assumption was the tra

RFR: jsr166 jdk9 integration wave 4

2016-02-01 Thread Martin Buchholz
After much debate on what to do when CompleteableFuture.whenComplete encounters an exception in both the source and the action, we chose what was acceptable to the most people - add the action's exception to the source exception as a suppressed exception. And added usage guidelines. And gave hand

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread Gerard Ziemski
hi Roger, I love that we are adding this Signal object. I have several questions, but please do not take them as criticism, I’m just seeking clarification and providing feedback: #1 Re: "Consumers for signals that are unknown or reserved by the Java implementation can not be registered.” - W

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread Roger Riggs
Hi Chris, On 2/1/2016 11:47 AM, Chris Hegarty wrote: Thank you for taking this on Roger. An initial question to help my understanding. [ I think I need to understand this, before I can comment further on the API ] I'm a little confused about how the default handler is supposed to work, so I lo

Re: RFR - 8132734: java.util.jar.* changes to support multi-release jar files

2016-02-01 Thread Xueming Shen
On 02/01/2016 09:58 AM, Steve Drach wrote: On Jan 30, 2016, at 12:00 AM, Alan Bateman wrote: On 29/01/2016 17:39, Paul Sandoz wrote: : Alan’s point is that traversing using entries()/stream() always returns the versioned entries (if any) rather than all entries, thus in a sense filters. My

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread Roger Riggs
Hi Gerard, On 2/1/2016 1:58 PM, Gerard Ziemski wrote: hi Roger, I love that we are adding this Signal object. I have several questions, but please do not take them as criticism, I’m just seeking clarification and providing feedback: #1 Re: "Consumers for signals that are unknown or reserved

RFR (S) 8148787: StringConcatFactory exactness check produces bad bytecode when a non-arg concat is requested

2016-02-01 Thread Aleksey Shipilev
Hi, Please review the fix for a corner case in StringConcatFactory exactness check, which produces invalid bytecode: https://bugs.openjdk.java.net/browse/JDK-8148787 Note that this happens when all three things align: a) BSM is called directly, as Java method -- javac would never produce such

Re: RFR - 8132734: java.util.jar.* changes to support multi-release jar files

2016-02-01 Thread Steve Drach
Alan’s point is that traversing using entries()/stream() always returns the versioned entries (if any) rather than all entries, thus in a sense filters. My assumption was the traversal should by default be consistent with a calls to getEntry, thus: jarF

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread Gerard Ziemski
> On Feb 1, 2016, at 1:25 PM, Roger Riggs wrote: > > Hi Gerard, > > On 2/1/2016 1:58 PM, Gerard Ziemski wrote: >> hi Roger, >> >> I love that we are adding this Signal object. I have several questions, but >> please do not take them as criticism, I’m just seeking clarification and >> providi

Re: RFR 9: 8143016 : java/time/test/java/time/TestClock_System.java failed intermittently

2016-02-01 Thread Roger Riggs
Hi, I discovered a flaw in the fix; it needs to re-read the instant from the clock inside the inner loop. Please review. Thanks, Roger On 2/1/2016 11:41 AM, Roger Riggs wrote: Please review a test improvement to address an intermittent test failure in the java.time System Clock test for mic

Re: RFR - 8132734: java.util.jar.* changes to support multi-release jar files

2016-02-01 Thread Steve Drach
I’m sorry, I didn’t look at the code close enough before I started talking ;-) Right now entries()/stream() returns all entries and if the JarFile is constructed with a Release object != Release.BASE, the base entries that are returned are the versioned entries. I think this behavior is a bit

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread Roger Riggs
Hi, On 2/1/2016 3:17 PM, Gerard Ziemski wrote: On Feb 1, 2016, at 1:25 PM, Roger Riggs wrote: Hi Gerard, On 2/1/2016 1:58 PM, Gerard Ziemski wrote: hi Roger, I love that we are adding this Signal object. I have several questions, but please do not take them as criticism, I’m just seeking c

Re: RFR - 8132734: java.util.jar.* changes to support multi-release jar files

2016-02-01 Thread Paul Benedict
I believe the answer should be based on your viewpoint of what "is" a JAR. Do you consider the JAR to be a dumb ZIP container or an artifact of the Java runtime? If it's the former, then return everything because the version folder is meaningless in this perspective. Otherwise, treat the JAR accord

Re: RFR 9: 8143016 : java/time/test/java/time/TestClock_System.java failed intermittently

2016-02-01 Thread Lance Andersen
See the change, looks OK On Feb 1, 2016, at 3:26 PM, Roger Riggs wrote: > Hi, > > I discovered a flaw in the fix; it needs to re-read the instant from the > clock inside the inner loop. > Please review. > > Thanks, Roger > > On 2/1/2016 11:41 AM, Roger Riggs wrote: >> Please review a test im

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread David Holmes
Hi Roger, Sorry I couldn't look into the code in extreme detail right now but would like to clarify the big picture ... Can you please clarify the exact flow of control from when a signal is sent to the process and when the Java handler for it gets to run - what is handled by which thread wh

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread Roger Riggs
HI David, On 2/1/2016 4:26 PM, David Holmes wrote: Hi Roger, Sorry I couldn't look into the code in extreme detail right now but would like to clarify the big picture ... Can you please clarify the exact flow of control from when a signal is sent to the process and when the Java handler fo

Re: RFR: 8072777: java/lang/ref/ReferenceEnqueuePending.java: some references aren't queued

2016-02-01 Thread Kim Barrett
> On Jan 31, 2016, at 4:19 AM, Peter Levart wrote: > > Hi Kim, Hi Peter - Thanks for looking at this. > This change will make it practically impossible to miss the enqueued > references. Good. That’s the goal. > But this could be an opportunity to also clean-up the code a bit. The > checkR

Re: RFR 9: 8087286 Need a way to handle control-C and possibly some other signals

2016-02-01 Thread David Holmes
Hi Roger, On 2/02/2016 7:41 AM, Roger Riggs wrote: HI David, On 2/1/2016 4:26 PM, David Holmes wrote: Hi Roger, Sorry I couldn't look into the code in extreme detail right now but would like to clarify the big picture ... Can you please clarify the exact flow of control from when a signal i

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

2016-02-01 Thread Iris Clark
Hi, Hong. Thanks again for looking closely at the regular expression and providing comments. > - The outer most quantifier in (((\.0)*\.[1-9][0-9]*)*)* is redundant > and a source of catastrophic backtracking. You only need > ((\.0)*\.[1-9][0-9]*)*. > - The outside - in PRE part (\-([a-zA-Z0

Re: RFR: 8079136: Accessing a nested sublist leads to StackOverflowError

2016-02-01 Thread Tagir F. Valeev
Hello! IG> It's misfortune that the spec of subList() doesn't match the spec of IG> similar methods, like CharSequence.subSequence() or String.substring(). IG> It even contradicts the spec of List.subList(), which declares only IOOB IG> to be thrown! Yes, it's a pity. Isn't it the reason to chang

Re: RFR: 8079136: Accessing a nested sublist leads to StackOverflowError

2016-02-01 Thread Ivan Gerasimov
Thanks Tagir for the comments! On 02.02.2016 9:19, Tagir F. Valeev wrote: Hello! IG> It's misfortune that the spec of subList() doesn't match the spec of IG> similar methods, like CharSequence.subSequence() or String.substring(). IG> It even contradicts the spec of List.subList(), which declar

Re: RFR: 8079136: Accessing a nested sublist leads to StackOverflowError

2016-02-01 Thread Martin Buchholz
On Mon, Feb 1, 2016 at 10:19 PM, Tagir F. Valeev wrote: > I have a doubt about replacing rangeCheckForAdd. What if size() == > Integer.MAX_VALUE? This is not an issue for ArrayList as it's limited > by MAX_ARRAY_SIZE which is Integer.MAX_VALUE - 8. Actually, the limit is Integer.MAX_VALUE. But

Re: RFR (S) 8148787: StringConcatFactory exactness check produces bad bytecode when a non-arg concat is requested

2016-02-01 Thread Aleksey Shipilev
Anyone? This looks like a trivial fix. -Aleksey On 02/01/2016 10:47 PM, Aleksey Shipilev wrote: > Hi, > > Please review the fix for a corner case in StringConcatFactory exactness > check, which produces invalid bytecode: > https://bugs.openjdk.java.net/browse/JDK-8148787 > > Note that this ha

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

2016-02-01 Thread Thanh Hong Dai
Dear Iris, On closer look, there seems to be some conflicting definition of version string. In JEP: http://openjdk.java.net/jeps/223 $VNUM(-$PRE)?(\+$BUILD)?(-$OPT)? In Javadoc: http://cr.openjdk.java.net/~iris/verona/8072379/doc.3/jdk/Version.html $VNUM(-$PRE)?(\+($BUILD)?(-$OPT)?)? In implem