Re: creating proxies for interfaces with default methods

2016-05-25 Thread Jochen Theodorou
On 25.05.2016 22:32, Mandy Chung wrote: On May 25, 2016, at 1:12 PM, Jochen Theodorou wrote: Dynamic proxies and invocation handlers won't do the job, as they do not provide an implementation of the interface I can call the default method on. Is this a general limitation of j.l.r.Proxy? At

Re: JDK 9 RFR of JDK-8157663: Remove tools/jimage/JImageTest.java from ProblemList.txt

2016-05-25 Thread joe darcy
Looks fine Amy; thanks, -Joe On 5/25/2016 10:10 PM, Amy Lu wrote: tools/jimage/JImageTest.java This test is in ProblemList.txt with related bugid JDK-8150975. JDK-8150975 has been closed since previously reported image recreate issue now is not an issue anymore because the support for jimag

JDK 9 RFR of JDK-8157663: Remove tools/jimage/JImageTest.java from ProblemList.txt

2016-05-25 Thread Amy Lu
tools/jimage/JImageTest.java This test is in ProblemList.txt with related bugid JDK-8150975. JDK-8150975 has been closed since previously reported image recreate issue now is not an issue anymore because the support for jimage recreate has been removed in JDK-8154090, in which test also update

Re: [9] review request: 8131888: Deliver javafx.swt as a modular jar in JDK 9

2016-05-25 Thread Mandy Chung
> On May 25, 2016, at 3:38 PM, Kevin Rushforth > wrote: > > Please review the following: > > https://bugs.openjdk.java.net/browse/JDK-8131888 > http://cr.openjdk.java.net/~kcr/8131888/webrev.00/ > > This adds support for the javafx.embed.swt package back into the JDK, which > will be delive

[9] review request: 8131888: Deliver javafx.swt as a modular jar in JDK 9

2016-05-25 Thread Kevin Rushforth
Please review the following: https://bugs.openjdk.java.net/browse/JDK-8131888 http://cr.openjdk.java.net/~kcr/8131888/webrev.00/ This adds support for the javafx.embed.swt package back into the JDK, which will be delivered as an automatic module in $JAVA_HOME/lib/javafx-swt.jar (final location

Re: 8156143: Module.getResourceAsStream throws unspecified SecurityException with module in custom Layer

2016-05-25 Thread Mandy Chung
> On May 25, 2016, at 2:40 AM, Alan Bateman wrote: > > This is minor mismatch between javadoc + implementation when > getResourceAsStream is called on a module in a custom Layer and access is > denied by the security manager. It's a one line fix, this is mostly just a > new test: > http://c

Re: creating proxies for interfaces with default methods

2016-05-25 Thread Mandy Chung
> On May 25, 2016, at 1:12 PM, Jochen Theodorou wrote: > >>> Dynamic proxies and invocation handlers won't do the job, as they do not >>> provide an implementation of the interface I can call the default method >>> on. >> >> Is this a general limitation of j.l.r.Proxy? At first glance it doesn'

Re: creating proxies for interfaces with default methods

2016-05-25 Thread Jochen Theodorou
On 25.05.2016 20:08, Alex Buckley wrote: On 5/25/2016 12:22 AM, Jochen Theodorou wrote: so in earlier mails to this list I described a bit the problems I got into with the way Groovy produces proxies and handles default methods for those. Pointer? The most relevant thread I could find was "Gro

Re: 8156142: ModuleReader instances don't always throw NPE for passed null args

2016-05-25 Thread Alan Bateman
On 25/05/2016 13:48, Chris Hegarty wrote: : I think this is fine. Does the @implSpec on release(ByteBuffer) need to be updated too? Fair point, it would be clearer if it said that it doesn't do anything except check for null. -Alan

Re: creating proxies for interfaces with default methods

2016-05-25 Thread Alex Buckley
On 5/25/2016 12:22 AM, Jochen Theodorou wrote: so in earlier mails to this list I described a bit the problems I got into with the way Groovy produces proxies and handles default methods for those. Pointer? The most relevant thread I could find was "Groovy with Jigsaw" from September 2015 but

Re: 8156142: ModuleReader instances don't always throw NPE for passed null args

2016-05-25 Thread Mandy Chung
> On May 25, 2016, at 4:49 AM, Alan Bateman wrote: > > > Another trivial patch, this time it's the ModuleReader for the system modules > is missing a null check so that it doesn't throw the expected NPE. The patch > is to mostly just expand test coverage. > http://cr.openjdk.java.net/~alanb/

Re: 8150668: Layer.defineModulesXXX with a Configuration containing java.base throws undocumented exception

2016-05-25 Thread Mandy Chung
> On May 25, 2016, at 4:09 AM, Alan Bateman wrote: > > > This is another small fix where the Layer javadoc doesn't make it clear that > there can only be one "java.base" module in the VM. The enforcement has been > there but it wasn't specified and there weren't tests for this scenario. >

Re: 8150668: Layer.defineModulesXXX with a Configuration containing java.base throws undocumented exception

2016-05-25 Thread Chris Hegarty
> On 25 May 2016, at 12:09, Alan Bateman wrote: > > This is another small fix where the Layer javadoc doesn't make it clear that > there can only be one "java.base" module in the VM. The enforcement has been > there but it wasn't specified and there weren't tests for this scenario. >http:/

Re: 8156142: ModuleReader instances don't always throw NPE for passed null args

2016-05-25 Thread Chris Hegarty
> On 25 May 2016, at 12:49, Alan Bateman wrote: > > > Another trivial patch, this time it's the ModuleReader for the system modules > is missing a null check so that it doesn't throw the expected NPE. The patch > is to mostly just expand test coverage. > http://cr.openjdk.java.net/~alanb/815

Re: 8156142: ModuleReader instances don't always throw NPE for passed null args

2016-05-25 Thread Sundararajan Athijegannathan
Looks good -Sundar On 5/25/2016 5:19 PM, Alan Bateman wrote: > > Another trivial patch, this time it's the ModuleReader for the system > modules is missing a null check so that it doesn't throw the expected > NPE. The patch is to mostly just expand test coverage. > http://cr.openjdk.java.net/~

8156142: ModuleReader instances don't always throw NPE for passed null args

2016-05-25 Thread Alan Bateman
Another trivial patch, this time it's the ModuleReader for the system modules is missing a null check so that it doesn't throw the expected NPE. The patch is to mostly just expand test coverage. http://cr.openjdk.java.net/~alanb/8156142/webrev/ Thanks, Alan

8150668: Layer.defineModulesXXX with a Configuration containing java.base throws undocumented exception

2016-05-25 Thread Alan Bateman
This is another small fix where the Layer javadoc doesn't make it clear that there can only be one "java.base" module in the VM. The enforcement has been there but it wasn't specified and there weren't tests for this scenario. http://cr.openjdk.java.net/~alanb/8150668/webrev/ Thanks, Ala

8156143: Module.getResourceAsStream throws unspecified SecurityException with module in custom Layer

2016-05-25 Thread Alan Bateman
This is minor mismatch between javadoc + implementation when getResourceAsStream is called on a module in a custom Layer and access is denied by the security manager. It's a one line fix, this is mostly just a new test: http://cr.openjdk.java.net/~alanb/8156143/webrev/ Thanks, -Alan

Re: (9) RFR: 8157783: Fix module dependencies for /javax/* and /jdk/* tests

2016-05-25 Thread Chris Hegarty
> On 25 May 2016, at 07:44, John Jiang wrote: > > Hi, > Please review this patch on fixing module dependencies for /javax/* and > /jdk/* tests. > > Issue: https://bugs.openjdk.java.net/browse/JDK-8157783 > Webrev: http://cr.openjdk.java.net/~jjiang/8157783/webrev.00/ The changes to the non-ja

Re: Ping - Re: RFR 8078812, Test RMI with client and servers as modules

2016-05-25 Thread Felix Yang
Hi Stuart, thanks for the comments. On 2016/5/21 7:52, Stuart Marks wrote: On 5/16/16 1:18 AM, Felix Yang wrote: please review the updated webrev, which remove not-suggested filesystem modification and codebase stuff: http://cr.openjdk.java.net/~xiaofeya/8078812/webrev.02/ Hi Felix,

Re: (9) RFR: 8157783: Fix module dependencies for /javax/* and /jdk/* tests

2016-05-25 Thread John Jiang
OK, I'll update issue JDK-8157783 and its webrev to focus on /jdk/* only. Thanks! John Jiang On 2016/5/25 15:07, Felix Yang wrote: Hi John, I think changes for javax/* tests are not needed. Please have a look at the bug below. We are waiting for the next jtreg promotion to push the cha

creating proxies for interfaces with default methods

2016-05-25 Thread Jochen Theodorou
Hi all, so in earlier mails to this list I described a bit the problems I got into with the way Groovy produces proxies and handles default methods for those. I would like to see how the correct solution to this is supposed to be so we have code like m.sortReversed{a,b -> a.value <=> b.v

Re: (9) RFR: 8157783: Fix module dependencies for /javax/* and /jdk/* tests

2016-05-25 Thread Felix Yang
Hi John, I think changes for javax/* tests are not needed. Please have a look at the bug below. We are waiting for the next jtreg promotion to push the change, otherwise those tests will be skipped silently. https://bugs.openjdk.java.net/browse/JDK-8157135 -Felix On 2016/5/25 14:44, Joh