RFR of JDK-8168975: java/rmi/activation/Activatable tests fail due to "Port already in use" in RMID.restart()

2016-11-15 Thread Hamlin Li
Would you please review below fix? bug: https://bugs.openjdk.java.net/browse/JDK-8168975 webrev: http://cr.openjdk.java.net/~mli/8168975/webrev.00/ Root Cause: There is a time window between RMID.start() and RMID.restart(), interloper can step in and bind to the port used by RMID in RMID.start

Re: [9] RFR (XS): 8169000: Define reference reachability more precisely in java.lang.ref package

2016-11-15 Thread Mandy Chung
> On Nov 15, 2016, at 4:41 AM, Zoltán Majó wrote: > > > I think the sentence in webrev.01 > > (1) "If a registered referenceceases to be strongly reachable itself, then it > may never be enqueued." > > is sufficient. I think we want to make a statement only about what happens > when a refer

Re: [9] RFR (XS): 8169000: Define reference reachability more precisely in java.lang.ref package

2016-11-15 Thread David Holmes
Hi Zoltan, First, I'm okay with latest webrev. Second, I don't want to confuse things but need to correct one thing ... On 15/11/2016 10:41 PM, Zoltán Majó wrote: Hi Mandy, thank you for looking at this! Please find more details below. On 11/15/2016 02:51 AM, Mandy Chung wrote: On Nov 14,

Re: [9] RfR: 8169289: JavaFX application in named module fails to launch if no main method

2016-11-15 Thread David DeHaven
> On Nov 15, 2016, at 4:21 PM, Mandy Chung wrote: > > >> On Nov 15, 2016, at 4:04 PM, David DeHaven wrote: >> >> > Please review the (fairly straightforward) JDK changes needed to support > launching JavaFX applications in a named module. > > JBS: > https://bugs.openjdk

Re: [9] RfR: 8169289: JavaFX application in named module fails to launch if no main method

2016-11-15 Thread Mandy Chung
> On Nov 15, 2016, at 4:04 PM, David DeHaven wrote: > > Please review the (fairly straightforward) JDK changes needed to support launching JavaFX applications in a named module. JBS: https://bugs.openjdk.java.net/browse/JDK-8169289 Webrev: http://cr.op

Re: [9] RfR: 8169289: JavaFX application in named module fails to launch if no main method

2016-11-15 Thread David DeHaven
>>> Please review the (fairly straightforward) JDK changes needed to support >>> launching JavaFX applications in a named module. >>> >>> JBS: >>> https://bugs.openjdk.java.net/browse/JDK-8169289 >>> >>> Webrev: >>> http://cr.openjdk.java.net/~ddehaven/8169289/jdk.0/ >>> >>> >> >> Would it b

RE: [9] RFR(XXXXS): 8160999: GPL header missing comma in year

2016-11-15 Thread Iris Clark
Hi. Your change looks fine to me. Thanks, iris -Original Message- From: Aleks Efimov Sent: Tuesday, November 15, 2016 1:48 PM To: core-libs-dev Subject: [9] RFR(S): 8160999: GPL header missing comma in year Hi, jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/uti

Re: [9] RFR(XXXXS): 8160999: GPL header missing comma in year

2016-11-15 Thread Mandy Chung
+1 Mandy > On Nov 15, 2016, at 1:48 PM, Aleks Efimov wrote: > > Hi, > > jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/util/XmlFactory.java > file contains incorrect GPL header which fails make/scripts/lic_check.sh > script check. > > Failure is caused by missing comma a

[9] RFR(XXXXS): 8160999: GPL header missing comma in year

2016-11-15 Thread Aleks Efimov
Hi, jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/util/XmlFactory.java file contains incorrect GPL header which fails make/scripts/lic_check.sh script check. Failure is caused by missing comma after modification years. Please, help to review its addition: diff -r 26c

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Remi Forax
Hi Brunoais, Java is not and will never be only what comes with the OpenJDK, it's a big (really big) community full of libraries for whatever you wish and even sometimes what you don't wish. So beside readline, you can also take a look at Jansi https://github.com/fusesource/jansi it's the packa

Re: JDK 9 RFR of JDK-8169736: Mark RmiIiopReturnValueTest.java as intermittently failing

2016-11-15 Thread Lance Andersen
+1 > On Nov 15, 2016, at 4:26 PM, joe darcy wrote: > > Hello, > > The test > > javax/rmi/PortableRemoteObject/8146975/RmiIiopReturnValueTest.java > > has been seen in intermittently fail in various test systems and should be > marked accordingly. > > Please review the patch below to do this.

JDK 9 RFR of JDK-8169736: Mark RmiIiopReturnValueTest.java as intermittently failing

2016-11-15 Thread joe darcy
Hello, The test javax/rmi/PortableRemoteObject/8146975/RmiIiopReturnValueTest.java has been seen in intermittently fail in various test systems and should be marked accordingly. Please review the patch below to do this. Thanks, -Joe diff -r 99b7853cfbd8 test/javax/rmi/PortableRemoteObjec

Re: [9] RfR: 8169289: JavaFX application in named module fails to launch if no main method

2016-11-15 Thread David DeHaven
>> Please review the (fairly straightforward) JDK changes needed to support >> launching JavaFX applications in a named module. >> >> JBS: >> https://bugs.openjdk.java.net/browse/JDK-8169289 >> >> Webrev: >> http://cr.openjdk.java.net/~ddehaven/8169289/jdk.0/ >> >> > > Would it be better to

default methods for java.lang.Comparable: isGreaterThan, ...

2016-11-15 Thread jimmy . praet
Hi, What are your thoughts on adding these default convenience methods to the java.lang.Comparable interface? public interface Comparable { int compareTo(T o); default boolean isGreaterThan(T o) { return compareTo(o) > 0; } default boolean isGreaterThanOrEqualTo(T o) { return compareTo(o

Re: [9] RfR: 8169289: JavaFX application in named module fails to launch if no main method

2016-11-15 Thread Mandy Chung
> On Nov 10, 2016, at 9:38 AM, David DeHaven wrote: > > > Please review the (fairly straightforward) JDK changes needed to support > launching JavaFX applications in a named module. > > JBS: > https://bugs.openjdk.java.net/browse/JDK-8169289 > > Webrev: > http://cr.openjdk.java.net/~ddehaven

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Roger Riggs
Hi Brunoais, Largely, because most people don't interact with java from a terminal and the simple stream oriented access has been sufficient. Take a look for layered libraries that can handle fancier terminals that have color and various positioning (ANSI) escape sequences that might meet yo

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Brunoais
I also noticed now that this does not allow placing the cursor in arbitrary places. With the same restrictions as jline, I could use javacurses. https://sourceforge.net/projects/javacurses/ Unfortunately, it also requires using extra native libraries to work because java does not include such

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Brunoais
jLine requires a .dll on windows making it not OS agnostic. If this existed in java itself, this problem would not be a problem because java internal dll are signed by java and can be included without issues. But then, why doesn't java have this? On 15/11/2016 15:12, Roger Riggs wrote: Hi,

RFR: JDK-8169505 - Update changes by JDK-8159393 to reflect CCC review

2016-11-15 Thread Jim Laskey (Oracle)
http://cr.openjdk.java.net/~jlaskey/8169505/webrev/index.html https://bugs.openjdk.java.net/browse/JDK-8169505

Re: [9] RfR: 8169289: JavaFX application in named module fails to launch if no main method

2016-11-15 Thread David DeHaven
Ping? Kumar? -DrD- > On Nov 10, 2016, at 9:38 AM, David DeHaven wrote: > > > Please review the (fairly straightforward) JDK changes needed to support > launching JavaFX applications in a named module. > > JBS: > https://bugs.openjdk.java.net/browse/JDK-8169289 > > Webrev: > http://cr.openj

Re: [JAXP] RFR 8169723: remove jaxp/src/java.xml/share/classes/org/w3c/dom/xpath/COPYRIGHT.html

2016-11-15 Thread Roger Riggs
Looks fine. Roger On 11/15/2016 11:31 AM, Daniel Fuchs wrote: Hi, Please find below a trivial patch for JBS: https://bugs.openjdk.java.net/browse/JDK-8169723 webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8169723/webrev.00/ The org.w3c.dom.xpath package is now exported by the jdk.xml.dom

[JAXP] RFR 8169723: remove jaxp/src/java.xml/share/classes/org/w3c/dom/xpath/COPYRIGHT.html

2016-11-15 Thread Daniel Fuchs
Hi, Please find below a trivial patch for JBS: https://bugs.openjdk.java.net/browse/JDK-8169723 webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8169723/webrev.00/ The org.w3c.dom.xpath package is now exported by the jdk.xml.dom package. Somehow this copyright file was copied instead of being

Re: 8072784: Better spliterator implementation for BitSet.stream()

2016-11-15 Thread Paul Sandoz
> On 14 Nov 2016, at 17:56, Paul Sandoz wrote: > > Hi, > > Please review this patch implementing a spliterator for BitSet: > > > http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8072784-bitset-stream-spliterator/webrev/ > > The spliterator is SIZED but not SUBSIZED, the bit set’s cardinality is

Re: [9] RFR (XS): 8169000: Define reference reachability more precisely in java.lang.ref package

2016-11-15 Thread Peter Levart
On 11/15/2016 01:41 PM, Zoltán Majó wrote: Here is the updated webrev: http://cr.openjdk.java.net/~zmajo/8169000/webrev.02/ +1 Regards, Peter

Re: [9] RFR: 8167240: Write new tests to cover functionality of existing 'jimage' options

2016-11-15 Thread Jim Laskey (Oracle)
+1 Really nice, thank you. > On Nov 15, 2016, at 11:16 AM, Denis Kononenko > wrote: > > > Hi, > > Please do re-review for these changes. > > 1) tests for list --include were rewritten accordingly to > https://bugs.openjdk.java.net/browse/JDK-8167384; > 2) removed tests for '@filename', see

Re: Java is too limited when dealing with the Console

2016-11-15 Thread Roger Riggs
Hi, You might find an open source package like JLine would have the full featured terminal support you are looking for. http://jline.sourceforge.net/ Roger On 11/13/2016 5:35 AM, Brunoais wrote: Since java 6, a class named Console was created. This class allows reading and writing directl

Re: [9] RFR: 8167240: Write new tests to cover functionality of existing 'jimage' options

2016-11-15 Thread Denis Kononenko
Hi, Please do re-review for these changes. 1) tests for list --include were rewritten accordingly to https://bugs.openjdk.java.net/browse/JDK-8167384; 2) removed tests for '@filename', see https://bugs.openjdk.java.net/browse/JDK-8169720; 3) two new CRs were submitted: https://bugs.openjdk.ja

RFR(s): 8169721: [TESTBUG] com/sun/jndi tests have undeclared dependency on java.naming module

2016-11-15 Thread Sergei Kovalev
Hi Team, Please review a small fix for tests. BugID: https://bugs.openjdk.java.net/browse/JDK-8169721 Web review: http://cr.openjdk.java.net/~skovalev/8169721/webrev.00/ Issue: most tests has missed dependency om java.naming module. Solution: add missed module declaration for tests. If this pos

Re: [9] RFR (XS): 8169000: Define reference reachability more precisely in java.lang.ref package

2016-11-15 Thread Zoltán Majó
Hi Mandy, thank you for looking at this! Please find more details below. On 11/15/2016 02:51 AM, Mandy Chung wrote: On Nov 14, 2016, at 6:28 AM, Zoltán Majó wrote: Here is the updated webrev with the updated text: http://cr.openjdk.java.net/~zmajo/8169000/webrev.01/ This spec uses “unreac

Re: [9] RFR (XS): 8169000: Define reference reachability more precisely in java.lang.ref package

2016-11-15 Thread Zoltán Majó
Hi David, On 11/14/2016 11:52 PM, David Holmes wrote: [...] I don't think you need the "(i.e ...)". You are cross referencing to the Reachability section where "strongly reachable" is defined. I see. OK, I've removed the "i.e.,". The fewer the changes the better - the key part is to make

Re: [9] RFR (XS): 8169000: Define reference reachability more precisely in java.lang.ref package

2016-11-15 Thread Zoltán Majó
Hi Peter, On 11/14/2016 10:59 PM, Peter Levart wrote: Hi Zoltan, On 11/14/2016 03:28 PM, Zoltán Majó wrote: [...] thank you for the suggestion and for the example program! Here is the updated webrev with the updated text: http://cr.openjdk.java.net/~zmajo/8169000/webrev.01/ Does that look