RE: RFR: 8166875: (tz) Support tzdata2016g

2016-10-05 Thread Ramanand Patil
Hi Masayoshi, Thank you for pointing that small miss. During testing phase, I had actually renamed "Asia/Rangoon" to "Asia/Yangon" (Asia/Rangoon entry was deleted) in TimeZoneNames*.java and this test case was failing along with other test cases, hence the bug ID tag was added there. But after c

Re: RFR: 8062389, 8029459, 8061950: Class.getMethod() is inconsistent with Class.getMethods() results + more

2016-10-05 Thread Peter Levart
Hi David, On 10/05/2016 04:27 AM, David Holmes wrote: Hi Peter, Without making any comment on what you have actually done, does this account for private interface methods correctly? In short, yes. Class.getMethods() and Class.getMethod() only ever return public methods. The source of Metho

Re: [concurrency-interest] Deprecate all java.util.concurrent.*FieldUpdater

2016-10-05 Thread Andrew Haley
On 04/10/16 22:19, Martin Buchholz wrote: > VarHandle is a reasonable replacement for FieldUpdaters, but it's not yet > complete (where is accumulateAndGet?), and when do you deprecate something > when the replacement won't be ubiquitous for 10 years? Surely you have to start somewhere: deprecatio

Re: RFR: 8159855

2016-10-05 Thread Stephen Colebourne
Interesting. How likely is it that there will be more than one tool of a given name available? The method name findFirst() seems relatively odd for the lookup operation. I'd also note that the name string to pass in are "magic". There are no constants defined for callers to use. Since there is no

Re: RFR: 8167005: Comment on the need for an empty constructor in ArrayList$Itr

2016-10-05 Thread Jonathan Bluett-Duncan
Okay, that makes sense to me! Thank you for your explanations Claes and Stuart. Kind regards, Jonathan On 5 October 2016 at 01:57, Stuart Marks wrote: > Right, the main point of the comment is to tell the reader the constructor > isn't superfluous, to prevent it from being cleaned up and accide

Re: RFR: 8159855: Create an SPI for tools

2016-10-05 Thread Alan Bateman
On 05/10/2016 10:54, Stephen Colebourne wrote: Interesting. How likely is it that there will be more than one tool of a given name available? The method name findFirst() seems relatively odd for the lookup operation. I'd also note that the name string to pass in are "magic". There are no const

Re: RFR: 8159855

2016-10-05 Thread Remi Forax
Very nice, it will greatly help gradle, maven, etc. in com/sun/tools/javac/main/Main.java, the other constructor should delegate its initialization to the constructor you just add, public Main(String name, PrintWriter out) { this(name, out, out); } I wonder if findFirst() in T

Re: Review Request JDK-8167014: jdeps: Missing message: warn.skipped.entry

2016-10-05 Thread Lance Andersen
Looks Ok Mandy > On Oct 4, 2016, at 10:52 PM, Mandy Chung wrote: > > http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8167014/webrev.00/index.html > > This fixes the missing key in the resource bundle and also include the > exception message of the invalid entry. I verified with a JAR file with

Re: RFR: 8159855

2016-10-05 Thread Alan Bateman
On 05/10/2016 12:10, Remi Forax wrote: Very nice, it will greatly help gradle, maven, etc. in com/sun/tools/javac/main/Main.java, the other constructor should delegate its initialization to the constructor you just add, public Main(String name, PrintWriter out) { this(name, ou

Re: RFR: 8159855

2016-10-05 Thread forax
It seems to be a little to JDK centric to me. Rémi - Mail original - > De: "Alan Bateman" > À: "Remi Forax" , "Jonathan Gibbons" > > Cc: compiler-...@openjdk.java.net, "OpenJDK Dev list" > > Envoyé: Mercredi 5 Octobre 2016 13:39:02 > Objet: Re: RFR: 8159855 > On 05/10/2016 12:10, Re

Re: RFR: 8159855

2016-10-05 Thread Alan Bateman
On 05/10/2016 13:20, fo...@univ-mlv.fr wrote: It seems to be a little to JDK centric to me. It supports the common case, making the advanced cases possible. Also it's consistent with the javax.tools API. So overall then I think Jon has this right. -Alan

RFR:8055033: Shell tests for jrunscript don't pass through VM options

2016-10-05 Thread Srinivas Dama
Hi, Please review http://cr.openjdk.java.net/~sdama/8055033/webrev.00/ for https://bugs.openjdk.java.net/browse/JDK-8055033 When launching java and javac from shell script, ${TESTVMOPTS}, ${TESTJAVAOPTS} and ${TESTTOOLVMOPTS}, ${TESTJAVACOPTS} should be passed in respectively since jtreg sets

Re: RFR: 8159855: Create an SPI for tools

2016-10-05 Thread Alan Bateman
On 05/10/2016 05:19, Mandy Chung wrote: : ToolProvider::findFirst(String name) can find tool providers on classpath. I think it needs to wrap the for-loop (specifically iterating on providers) with doPrivileged due to the stack-based permission check. Yes, that will be needed, otherwise the

Re: Deprecate all java.util.concurrent.*FieldUpdater

2016-10-05 Thread Remi Forax
Hi Martin, On October 4, 2016 11:19:33 PM GMT+02:00, Martin Buchholz wrote: >VarHandle is a reasonable replacement for FieldUpdaters, but it's not >yet >complete (where is accumulateAndGet?), Seems to be a feature for me :) I've never liked the methods that takes a lambda in FieldUpdater. If y

RFR(XS): 8166800: [s390] Top-level build changes required for Linux/s390x

2016-10-05 Thread Volker Simonis
Hi, can I please have a review and sponsor for the following tiny top-level build change required for building the OpenJDK on Linux/s390: http://cr.openjdk.java.net/~simonis/webrevs/2016/s390x/8166800/ https://bugs.openjdk.java.net/browse/JDK-8166800 All this change does is to add some s390-spec

RFR(XXS): 8166801: [s390] Add jvm.cfg file for Linux/s390x

2016-10-05 Thread Volker Simonis
Hi, can somebody please review the following trivial change which simply adds a new jvm.cfg file for Linux/s390x: http://cr.openjdk.java.net/~simonis/webrevs/2016/s390x/8166801/ https://bugs.openjdk.java.net/browse/JDK-8166801 This is so far the only change we need in the jdk-repository for our

Re: Deprecate all java.util.concurrent.*FieldUpdater

2016-10-05 Thread David M. Lloyd
I'm sure I recall an email from the past few months which proposed that *FieldUpdater are still going to be recommended in many cases over VarHandle because the latter is probably too low-level for casual uses. It was (IIRC) an argument in favor of more advanced fence methods or something like

Re: RFR(XXS): 8166801: [s390] Add jvm.cfg file for Linux/s390x

2016-10-05 Thread Aleksey Shipilev
On 10/05/2016 04:43 PM, Volker Simonis wrote: > can somebody please review the following trivial change which simply > adds a new jvm.cfg file for Linux/s390x: > > http://cr.openjdk.java.net/~simonis/webrevs/2016/s390x/8166801/ > https://bugs.openjdk.java.net/browse/JDK-8166801 This looks okay (a

Re: RFR(XXS): 8166801: [s390] Add jvm.cfg file for Linux/s390x

2016-10-05 Thread Erik Joelsson
Looks good to me. /Erik On 2016-10-05 16:43, Volker Simonis wrote: Hi, can somebody please review the following trivial change which simply adds a new jvm.cfg file for Linux/s390x: http://cr.openjdk.java.net/~simonis/webrevs/2016/s390x/8166801/ https://bugs.openjdk.java.net/browse/JDK-816680

Re: RFR(XS): 8166800: [s390] Top-level build changes required for Linux/s390x

2016-10-05 Thread Erik Joelsson
Looks ok to me. I can sponsor this tomorrow. /Erik On 2016-10-05 16:43, Volker Simonis wrote: Hi, can I please have a review and sponsor for the following tiny top-level build change required for building the OpenJDK on Linux/s390: http://cr.openjdk.java.net/~simonis/webrevs/2016/s390x/81668

Re: RFR: 8159855: Create an SPI for tools

2016-10-05 Thread Jonathan Gibbons
On 10/5/16 3:34 AM, Alan Bateman wrote: On 05/10/2016 10:54, Stephen Colebourne wrote: Interesting. How likely is it that there will be more than one tool of a given name available? The method name findFirst() seems relatively odd for the lookup operation. I'd also note that the name string t

Re: RFR(XS): 8166800: [s390] Top-level build changes required for Linux/s390x

2016-10-05 Thread Volker Simonis
That would be really great! Could you please do it in the jdk9/hs forest as that's the place where we will need it first (i.e. when integrating the whole s390 hotspot platform files). Thanks, Volker On Wed, Oct 5, 2016 at 5:07 PM, Erik Joelsson wrote: > Looks ok to me. I can sponsor this tomorr

Re: [concurrency-interest] Deprecate all java.util.concurrent.*FieldUpdater

2016-10-05 Thread Andrew Haley
On 05/10/16 15:39, Justin Sampson wrote: > Deprecation is stronger than that -- it says "we're going to remove > this, or we wish we could remove it because it's broken, so you'd > better change your code a.s.a.p." -- e.g. Thread.stop(). We're moving Java to support some new ways of working, and

RFR JDK-8166261: Scanner.nextInt(int) (and similar methods) throws PatternSyntaxException

2016-10-05 Thread Xueming Shen
Hi Please help review issue: https://bugs.openjdk.java.net/browse/JDK-8166261 webre: http://cr.openjdk.java.net/~sherman/8166261/webrev The radix sanity check are missing from hasNextByte/Short/Int/Long/BigInteger(). The only method we are doing now is useRadix(). The proposed change here i

RE: [concurrency-interest] Deprecate all java.util.concurrent.*FieldUpdater

2016-10-05 Thread Justin Sampson
Deprecation is stronger than that -- it says "we're going to remove this, or we wish we could remove it because it's broken, so you'd better change your code a.s.a.p." -- e.g. Thread.stop(). My interpretation of Martin's comment is that using deprecation for things that aren't actually broken ju

Re: RFR: JDK-8134373: explore potential uses of convenience factories within the JDK

2016-10-05 Thread Jonathan Bluett-Duncan
Stuart, thank you very much for your continued review of this changeset, and for finding those usages of CookieManager::get in Grepcode for me. I've applied the comment you suggested for ModuleFinder and I've also fixed the NetscapeCookieStore typo. Stephen, thank you for getting back about DateTi

Re: [concurrency-interest] Deprecate all java.util.concurrent.*FieldUpdater

2016-10-05 Thread Vladimir Ivanov
My interpretation of Martin's comment is that using deprecation for things that aren't actually broken just means that people will live with lots of deprecation warnings in their code for years to come. This could be a perfect case for introducing a weaker alternative to deprecation, saying "here'

Re: [concurrency-interest] Deprecate all java.util.concurrent.*FieldUpdater

2016-10-05 Thread Andrew Haley
On 05/10/16 17:55, Vladimir Ivanov wrote: >>> My interpretation of Martin's comment is that using deprecation for >>> things that aren't actually broken just means that people will live >>> with lots of deprecation warnings in their code for years to >>> come. This could be a perfect case for intro

Re: RFR JDK-8166261: Scanner.nextInt(int) (and similar methods) throws PatternSyntaxException

2016-10-05 Thread Naoto Sato
Looks good to me. The test case could use IntStream.rangeClosed(Character.MIN_RADIX, Character.MAX_RADIX) for the good radixes, instead of hard coding ints. Naoto On 10/5/16 8:53 AM, Xueming Shen wrote: Hi Please help review issue: https://bugs.openjdk.java.net/browse/JDK-8166261 webre: h

Re: RFR: JDK-8134373: explore potential uses of convenience factories within the JDK

2016-10-05 Thread Patrick Reinhart
Hi Jonathan, As soon you got all the changes together, we can go thru them and I will recreate the webrev… -Patrick > Am 05.10.2016 um 18:07 schrieb Jonathan Bluett-Duncan > : > > Stuart, thank you very much for your continued review of this changeset, > and for finding those usages of Cookie

Re: Review Request JDK-8166846: jdeps fails to generate module info if there is any class in unnamed package

2016-10-05 Thread Lance Andersen
Hi Mandy The code changes look good. A couple of minor suggestions This looks good. Only thought I had is err.genmoduleinfo.unnamed.package={0} contains unnamed package; not a valid module to generate module-info.java perhaps change it to: {0} contains an unnamed package that is not

Re: Review Request JDK-8167014: jdeps: Missing message: warn.skipped.entry

2016-10-05 Thread Alan Bateman
On 05/10/2016 03:52, Mandy Chung wrote: http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8167014/webrev.00/index.html This fixes the missing key in the resource bundle and also include the exception message of the invalid entry. I verified with a JAR file with bad entries. This looks okay t

Re: Review Request JDK-8166846: jdeps fails to generate module info if there is any class in unnamed package

2016-10-05 Thread Mandy Chung
Lance, Thanks for the review. jdeps.properties updated: err.genmoduleinfo.not.jarfile={0} is a modular JAR file that cannot be specified with the --generate-module-info option err.genmoduleinfo.unnamed.package={0} contains an unnamed package that is not allowed in a module Mandy > On Oct 5, 2

RFR: 8166460: jdk/internal/util/jar/TestVersionedStream gets Assertion error

2016-10-05 Thread Steve Drach
Hi, Please review the following changeset that creates a replacement for the TestVersionedStream test. The previous test occasionally failed on Linux hotspot nightly testing due to jar tool sometimes changing the order of the entries. The new test specifically sets the order of the entries an

Re: RFR: JDK-8134373: explore potential uses of convenience factories within the JDK

2016-10-05 Thread Stephen Colebourne
On 5 October 2016 at 17:07, Jonathan Bluett-Duncan wrote: > Stephen, thank you for getting back about DateTimeFormatter. It's not clear > to me what should be done with > TCKDateTimeFormatter::test_resolverFields_listOfOneNull in this case. Do I > delete it; or do I change it to test that a null T

RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread Brent Christian
Hi, Please review my fix for 8151486, "Class.forName causes memory leak". Bug: https://bugs.openjdk.java.net/browse/JDK-8151486 Webrev: http://cr.openjdk.java.net/~bchristi/8151486/webrev.00/ The test case reproduces the bug as such: With a SecurityManager enabled, a class ("ClassForName") is

Re: [9] RFR of JDK-8085192: java/rmi/activation/Activatable tests fail intermittently due to "Port already in use"

2016-10-05 Thread Roger Riggs
Hi Chris, Some comments, BTW, there is a newer version of Webrev that provides convenient next and prev links... * sun/rmi/server/Activation.java: 1973 - I'd stick to the normal set of values for a boolean system property: use java.lang.Boolean.getProperty("sun.rmi"). * With so many

Re: RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread Mandy Chung
> On Oct 5, 2016, at 12:38 PM, Brent Christian > wrote: > > Hi, > > Please review my fix for 8151486, "Class.forName causes memory leak". > > Bug: > https://bugs.openjdk.java.net/browse/JDK-8151486 > Webrev: > http://cr.openjdk.java.net/~bchristi/8151486/webrev.00/ > Since domains is not us

Re: RFR: JDK-8134373: explore potential uses of convenience factories within the JDK

2016-10-05 Thread Stuart Marks
Stephen, Thanks for the quick followup clarifications. I'm not entirely sure how you'd like to proceed; see discussion below. Jonathan, also see below. On 10/5/16 9:07 AM, Jonathan Bluett-Duncan wrote: Stuart, thank you very much for your continued review of this changeset, and for finding

Re: RFR: JDK-8134373: explore potential uses of convenience factories within the JDK

2016-10-05 Thread Roger Riggs
Hi, I would leave the test and code as is for the purposes of 8133273 and leave it to later to resolve 8167222. There is no compelling need to change it. $.02, Roger On 10/5/2016 4:45 PM, Stuart Marks wrote: Stephen, Thanks for the quick followup clarifications. I'm not entirely sure how

Re: RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread Naoto Sato
Typo in ClassForNameLeak.java? At line 103, "change" -> "chance"? Naoto On 10/5/16 12:38 PM, Brent Christian wrote: Hi, Please review my fix for 8151486, "Class.forName causes memory leak". Bug: https://bugs.openjdk.java.net/browse/JDK-8151486 Webrev: http://cr.openjdk.java.net/~bchristi/8151

Re: RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread David Holmes
On 6/10/2016 6:19 AM, Mandy Chung wrote: On Oct 5, 2016, at 12:38 PM, Brent Christian wrote: Hi, Please review my fix for 8151486, "Class.forName causes memory leak". Bug: https://bugs.openjdk.java.net/browse/JDK-8151486 Webrev: http://cr.openjdk.java.net/~bchristi/8151486/webrev.00/ Sin

Re: RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread Brent Christian
Yes! Good catch, thanks. -Brent On 10/5/16 2:08 PM, Naoto Sato wrote: Typo in ClassForNameLeak.java? At line 103, "change" -> "chance"? Naoto On 10/5/16 12:38 PM, Brent Christian wrote: Hi, Please review my fix for 8151486, "Class.forName causes memory leak". Bug: https://bugs.openjdk.java

Re: RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread Mandy Chung
> On Oct 5, 2016, at 2:26 PM, David Holmes wrote: > > On 6/10/2016 6:19 AM, Mandy Chung wrote: >> >> >> Since domains is not used and not intended to keep PD alive and VM maintains >> its own cache of these initiating PD for performance, removing domains field >> looks good to me. > > What

Re: RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread David Holmes
On 6/10/2016 8:55 AM, Mandy Chung wrote: On Oct 5, 2016, at 2:26 PM, David Holmes wrote: On 6/10/2016 6:19 AM, Mandy Chung wrote: Since domains is not used and not intended to keep PD alive and VM maintains its own cache of these initiating PD for performance, removing domains field look

Re: RFR: JDK-8134373: explore potential uses of convenience factories within the JDK

2016-10-05 Thread Stuart Marks
On 10/5/16 12:32 PM, Stephen Colebourne wrote: On 5 October 2016 at 17:07, Jonathan Bluett-Duncan wrote: Stephen, thank you for getting back about DateTimeFormatter. It's not clear to me what should be done with TCKDateTimeFormatter::test_resolverFields_listOfOneNull in this case. Do I delete

Re: RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread Mandy Chung
> On Oct 5, 2016, at 4:02 PM, David Holmes wrote: > > On 6/10/2016 8:55 AM, Mandy Chung wrote: >> >> >> Note that PD is the protection domain of an initiating class that resolves a >> target type T. PD is kept in T’s class loader L. It’s not the protection >> domains of the classes defined

Re: Proposal for adding O_DIRECT support into JDK 9

2016-10-05 Thread Brian Burkhalter
Hi Lucy, On Oct 4, 2016, at 5:35 PM, Lu, Yingqi wrote: > Thank you very much for reviewing the patch and providing the detailed > error/warning messages. They are very helpful! You are welcome. > We will look into the issues and solve them in the next version of the patch. > Test cases for O

Re: RFR 8151486 : Class.forName causes memory leak

2016-10-05 Thread David Holmes
On 6/10/2016 9:19 AM, Mandy Chung wrote: On Oct 5, 2016, at 4:02 PM, David Holmes wrote: On 6/10/2016 8:55 AM, Mandy Chung wrote: Note that PD is the protection domain of an initiating class that resolves a target type T. PD is kept in T’s class loader L. It’s not the protection domain