Re: Are TimeZone instances guaranteed to be thread-safe

2018-08-31 Thread Bernd Eckenfels
Ah BTW, there is a TimeZone.getTimezone(ZoneOffset.UTC) construct which can be used. The ZoneId is also immutable, but that construct does say nothing about TimeZone instance. Gruss Bernd -- http://bernd.eckenfels.net Von: Bernd Eckenfels Gesendet: Samstag,

Are TimeZone instances guaranteed to be thread-safe

2018-08-31 Thread Bernd Eckenfels
Hello, I am not sure I missed it, but it looks like there is no definition in the JCL JavaDoc about instances of j.u.TimeZone (specifically SimpleTimeZone as well as instances obtained with getDefault or by Id) beeing reentrant/thread Safe or not. (There are for examplequite a few non-final

RFR 8210285 : CharsetDecoder/Encoder's constructor does not reject NaN

2018-08-31 Thread Ivan Gerasimov
Hello! The javadoc for CharsetDecoder [1] states that an exception is thrown when a non-positive number is passed in as an argument. However we only reject negative or zero numbers, but not NaN. And likewise for CharsetEncoder. Would you please help review a trivial fix? BUGURL:

Re: RFR(M) : 8210039 : move OSInfo to top level testlibrary

2018-08-31 Thread Igor Ignatyev
Alan, Chris, thanks for looking at it, I went w/ the alternative suggested by Chris. that required a sprinkle of doPrivileged in the testlibrary, but now Sockets/policy.* files grant the minimal required permissions to the test code. the incremental webrev can found here[1], please let me know

Re: RFR 8210226: Add support for multiple project folders to idea.sh

2018-08-31 Thread Erik Joelsson
Looks ok to me (and same caveat as Magnus). /Erik On 2018-08-31 06:59, Maurizio Cimadamore wrote: Thanks for the reviews; once again, when doing some more testing I discovered some issues which had to do with coexistence with the intellij jtreg plugin. The bottom of the issue is that

Re: [OpenJDK 2D-Dev] RFR JDK-8209786: gcc 7.3 compiler errors on zLinux

2018-08-31 Thread Brian Burkhalter
On Aug 31, 2018, at 2:28 AM, Magnus Ihse Bursie wrote: >> Magnus, Philip, Brian, Goetz, can we have a vote? => "Fix" or >> "DisableWarnings" ? > > Note that this decision can be different for the two libraries. I'd argue > that the maintainer of each library decides. And if so, it seems to

Re: RFR 8210226: Add support for multiple project folders to idea.sh

2018-08-31 Thread Maurizio Cimadamore
Thanks for the reviews; once again, when doing some more testing I discovered some issues which had to do with coexistence with the intellij jtreg plugin. The bottom of the issue is that certain IDE owned ant variable (such as $ModuleFileDir$) are only set when clicking on certain IDE

Re: [RFR] 8205525 : Improve exception messages during manifest parsing of jar archives

2018-08-31 Thread Weijun Wang
> On Aug 31, 2018, at 8:52 PM, Baesken, Matthias > wrote: > > Hi Max : > >> >> - No need to "import java.security.Security". > > Sure I can remove this, it is a leftover. > >> - In the updated read() method, I think there is no need to use an "int >> offset" >> parameter. "int

RE: [RFR] 8205525 : Improve exception messages during manifest parsing of jar archives

2018-08-31 Thread Baesken, Matthias
Hi Max : > > - No need to "import java.security.Security". Sure I can remove this, it is a leftover. > - In the updated read() method, I think there is no need to use an "int > offset" > parameter. "int lineNumber" is enough and you can modify it and return it > without a new local variable.

Re: [OpenJDK 2D-Dev] RFR JDK-8209786: gcc 7.3 compiler errors on zLinux

2018-08-31 Thread Magnus Ihse Bursie
On 2018-08-31 11:14, Andrew Leonard wrote: Hi, So there seems to be varying opinion here, taking the 2D view point since it is going to be maintained, the opinion seems to be more with the fix (http://cr.openjdk.java.net/~aleonard/8209786/webrev.00/

Re: [OpenJDK 2D-Dev] RFR JDK-8209786: gcc 7.3 compiler errors on zLinux

2018-08-31 Thread Andrew Leonard
Hi, So there seems to be varying opinion here, taking the 2D view point since it is going to be maintained, the opinion seems to be more with the fix ( http://cr.openjdk.java.net/~aleonard/8209786/webrev.00/). This would be my personal preference also, but previous comments seemed to prefer

Re: [OpenJDK 2D-Dev] RFR JDK-8209786: gcc 7.3 compiler errors on zLinux

2018-08-31 Thread Magnus Ihse Bursie
On 2018-08-31 01:28, Philip Race wrote: Some day, I'd like to replace a lot of medialib functionality with something like the proposed Vector API. But that is far enough away that medialib needs to be maintained, and unlike a previous discussion about a similar issue in the JPEG library, we

Re: RFR 8210226: Add support for multiple project folders to idea.sh

2018-08-31 Thread Magnus Ihse Bursie
On 2018-08-30 17:12, Maurizio Cimadamore wrote: Hi, this patch adds proper support for -o option to the idea.sh script, which allows to place the .idea folder under any given output folder (not necessarily the JDK root). To be able to do this, I had to revampo the logic for template

RE: RFR JDK-8209786: gcc 7.3 compiler errors on zLinux

2018-08-31 Thread Lindenmaier, Goetz
Hi Leonard, Whom should I add as reviewers? (Besides me :)) Best regards, Goetz. > -Original Message- > From: Andrew Leonard > Sent: Donnerstag, 30. August 2018 17:02 > To: Lindenmaier, Goetz > Cc: Brian Burkhalter ; build-dev (build- > d...@openjdk.java.net) ; core-libs- >