Re: RFR JDK-8209553: ExceptionInInitializerError can have a default detail message if the cause is given

2018-08-15 Thread mandy chung
On 8/15/18 5:10 PM, mandy chung wrote: I think we should remove the ExceptionInInitializerError::getCause method and have getException to return getCause().  I think the simplest is to keep the exception field and make sure it's set with the cause. Existing version of EIIE always has null

Re: RFR JDK-8209553: ExceptionInInitializerError can have a default detail message if the cause is given

2018-08-15 Thread mandy chung
On 8/15/18 3:20 PM, Peter Levart wrote: Hi Mandy, Just a question. Why does "private Throwable exception" field in ExceptionInInitializerError exist? Was it there before there was a "cause" in Throwable and later still remained there because of serialization format? Would it be possible

Re: RFR(XXS) : 8209386 : [error-prone] StreamResourceLeak in jdk.internal.ed module

2018-08-15 Thread Igor Ignatyev
ping? -- Igor > On Aug 10, 2018, at 1:44 PM, Igor Ignatyev wrote: > > http://cr.openjdk.java.net/~iignatyev//8209386/webrev.00/index.html >> 4 lines changed: 1 ins; 0 del; 3 mod; > > Hi all, > > could you please review this small fix for the error detected in > jdk.internal.ed by

Re: RFR JDK-8209553: ExceptionInInitializerError can have a default detail message if the cause is given

2018-08-15 Thread Peter Levart
Hi Mandy, Just a question. Why does "private Throwable exception" field in ExceptionInInitializerError exist? Was it there before there was a "cause" in Throwable and later still remained there because of serialization format? Would it be possible to "simulate" its effect for serialization

RFR JDK-8209553: ExceptionInInitializerError can have a default detail message if the cause is given

2018-08-15 Thread mandy chung
ExceptionInInitializerError(Throwable cause) sets the detail message to null. It'd be helpful to include a detail message rather than null as in Throwable(Throwable cause) that constructs a new throwable with a default message cause==null ? null : cause.toString(). This would help

RFR(XXS) : 8209549 : remove VMPropsExt from TEST.ROOT

2018-08-15 Thread Igor Ignatyev
http://cr.openjdk.java.net/~iignatyev//8209549/webrev.00/index.html > 2 lines changed: 0 ins; 0 del; 2 mod; Hi all, could you please review this tiny patch which removes unused (and actually non-existed) file from requires.extraPropDefns and simplifies paths in requires.extraPropDefns and

Re: Removing the Barrier

2018-08-15 Thread Bernd Eckenfels
You can remove all comments you like. If you do not distribute the resulting binaries you do not need to provide the changes/source you made (that’s a legal requirement from the GPL license). If you do need to provide source (because you distribute binaries) then you have to retain at least all

Re: Removing the Barrier

2018-08-15 Thread Peter Levart
The javadoc comments in public API are a requirement in OpenJDK and can not be removed. This is the OpenJDK project policy. If you want to extend OpenJDK you have to add the comments. And not only comments. New public API may be added to OpenJDK only after passing the special process called

Re: JDK 12 RFR of 5075463 : (enum) Serialized Form javadoc for java.lang.Enum is misleading

2018-08-15 Thread joe darcy
Hi Roger, Filed JDK-8209542: "Serialization discussion of enum types should mention java.lang.Enum." Thanks for the review, -Joe On 8/15/2018 6:20 AM, Roger Riggs wrote: Hi Joe, This change looks fine as the spec for serializing Enum's is in OIS and OOS. However, the spec for

Re: Core Type Compilation Issues

2018-08-15 Thread Peter Levart
On 08/15/2018 07:16 PM, Peter Levart wrote: On 08/15/2018 05:49 PM, dalibor topic wrote: On 06.08.2018 20:21, mr rupplin wrote: Three problems that I run into when running the 'make jdk' after minor work on the System.java class for JNI and custom JDK:

Re: Core Type Compilation Issues

2018-08-15 Thread Peter Levart
On 08/15/2018 05:49 PM, dalibor topic wrote: On 06.08.2018 20:21, mr rupplin wrote: Three problems that I run into when running the 'make jdk' after minor work on the System.java class for JNI and custom JDK: java/lang/memory/GroupListener.java:111: Can we get explanations for each of

Re: RFR 8209184: JDK8 ResourceBundle vulnerable to GC (fix included)

2018-08-15 Thread mandy chung
Hi Adam, This fix is JDK 8u only and so you will need to request for 8u approval. The proposed empty static method is fine with me. Please fix the format and indentation before you post the review. Since this patch is small, you can inline the diff in the RFR mail. I can review it when you

Re: Core Type Compilation Issues

2018-08-15 Thread dalibor topic
On 06.08.2018 20:21, mr rupplin wrote: Three problems that I run into when running the 'make jdk' after minor work on the System.java class for JNI and custom JDK: java/lang/memory/GroupListener.java:111: Can we get explanations for each of these? No. There is no java.lang.memory in

Re: RFR 8209184: JDK8 ResourceBundle vulnerable to GC (fix included)

2018-08-15 Thread Adam Farley8
Hi Mandy, Hans, Tried out the below (after removing my previous fix, the volatile compare), and it appears to solve the problem just fine. If I generate a webrev and get it attached to the bug, would one of you mind approving the change? --...at the end of getBundleImpl in jdk8

Re: RFR 8209184: JDK8 ResourceBundle vulnerable to GC (fix included)

2018-08-15 Thread Adam Farley8
Hi Mandy, Hans, Tried out the below (after removing my previous fix, the volatile compare), and it appears to solve the problem just fine. If I generate a webrev and get it attached to the bug, would one of you mind approving the change? --...at the end of getBundleImpl in jdk8

Removing the Barrier

2018-08-15 Thread mr rupplin
Can you explain how to remove the requirement for comments in the OpenJDK build in the Java source files? It's really killing my schedule to have to reinsert comments by hand. Thanks. Max R. Software Developer

Re: RFR 8208715: Conversion of milliseconds to nanoseconds in UNIXProcess contains bug

2018-08-15 Thread Martin Buchholz
Your change is still approved, but ... All tests are a little white-box in the sense that they are guided by where bugs are likely to be found, which comes from experience with implementations. There is a collection of timed waiting APIs in the JDK that throw InterruptedException. It would be

Re: RFR 8208715: Conversion of milliseconds to nanoseconds in UNIXProcess contains bug

2018-08-15 Thread Roger Riggs
Hi Martin, ok, as a reliable pattern I see that to avoid knowing details of the implementation. But the self interrupt seems redundant if the other is needed. Updated:   http://cr.openjdk.java.net/~rriggs/webrev-timeout-8208715/ Thanks, Roger On 8/14/2018 6:14 PM, Martin Buchholz wrote:

Re: JDK 12 RFR of 5075463 : (enum) Serialized Form javadoc for java.lang.Enum is misleading

2018-08-15 Thread Roger Riggs
Hi Joe, This change looks fine as the spec for serializing Enum's is in OIS and OOS. However, the spec for serializing Enum's in ObjectInputStream and ObjectOutputStream is incomplete. It does not mention that the class of the Enum is written to the stream before the enum name. Please file

Re: JDK 12 RFR of 8176425: Add radix indication in NumberFormatException message for Integer.decode

2018-08-15 Thread Lance Andersen
Looks good Joe On Aug 14, 2018, at 11:20 PM, joe darcy wrote: > http://cr.openjdk.java.net/~darcy/8176425.0/ Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037 Oracle Java Engineering 1 Network Drive Burlington, MA 01803 lance.ander...@oracle.com

Re: JDK 12 RFR of 5075463 : (enum) Serialized Form javadoc for java.lang.Enum is misleading

2018-08-15 Thread Lance Andersen
Hi Joe, Added myself as a reviewer to the CSR and the change looks fine On Aug 14, 2018, at 11:59 PM, joe darcy wrote: > https://bugs.openjdk.java.net/browse/JDK-8209524 Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037 Oracle Java Engineering 1 Network Drive

Re: RFR: 8207851 JEP Draft: Support ByteBuffer mapped over non-volatile memory

2018-08-15 Thread Andrew Dinn
Hi Alan, Just a quick follow-up regarding the BufferPoolMXBean. On 14/08/18 12:34, Andrew Dinn wrote: > On 06/08/18 10:29, Alan Bateman wrote: > >> Are you familiar with BufferPoolMXBean which can be used by management >> tools to monitor pool of buffers? I'm wondering if we should introduce a

Re: Arrays.asList returned List - Its modifying/write-through semantics

2018-08-15 Thread Jaikiran Pai
Hi Ivan, On 15/08/18 1:20 PM, Ivan Gerasimov wrote: > Hi Jaikiran! > > The first part (the documentation clarification) was requested some > time ago [1], so it may be eventually fixed. > > [1] https://bugs.openjdk.java.net/browse/JDK-7033681 Thank you for pointing to that one. I hadn't found it

Re: Arrays.asList returned List - Its modifying/write-through semantics

2018-08-15 Thread Ivan Gerasimov
Hi Jaikiran! The first part (the documentation clarification) was requested some time ago [1], so it may be eventually fixed. [1] https://bugs.openjdk.java.net/browse/JDK-7033681 With respect to the second part (throwing UOE from remove(Object)), I agree with you that it would be more

Arrays.asList returned List - Its modifying/write-through semantics

2018-08-15 Thread Jaikiran Pai
Consider the following code: import java.util.Arrays; import java.util.List; public class ArraysAsListTest {     public static void main(final String[] args) throws Exception {         final List someList = Arrays.asList(new String[] {"a"});         System.out.println("Removed? " +