Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread serguei.spit...@oracle.com
I was thinking about the same. But a CCC request is needed for such a change in public API. It can be done separately if any other API changes are necessary. Thanks, Serguei On 8/23/12 6:27 PM, David Holmes wrote: Hi Mandy, While I understand what you are doing and that it "works" it is far

hg: hsx/hotspot-rt/langtools: Added tag jdk8-b53 for changeset d3d0b9cd76e0

2012-08-23 Thread john . coomes
Changeset: 9cf72631baf5 Author:katleman Date: 2012-08-23 12:27 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/langtools/rev/9cf72631baf5 Added tag jdk8-b53 for changeset d3d0b9cd76e0 ! .hgtags

hg: hsx/hotspot-rt/jdk: Added tag jdk8-b53 for changeset 2c6933c5106b

2012-08-23 Thread john . coomes
Changeset: 156ab3c38556 Author:katleman Date: 2012-08-23 12:27 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jdk/rev/156ab3c38556 Added tag jdk8-b53 for changeset 2c6933c5106b ! .hgtags

hg: hsx/hotspot-rt/jaxws: Added tag jdk8-b53 for changeset 8a35fd644d3c

2012-08-23 Thread john . coomes
Changeset: 91970935926a Author:katleman Date: 2012-08-23 12:27 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jaxws/rev/91970935926a Added tag jdk8-b53 for changeset 8a35fd644d3c ! .hgtags

hg: hsx/hotspot-rt/jaxp: Added tag jdk8-b53 for changeset 2c566f25c39f

2012-08-23 Thread john . coomes
Changeset: 7dd81ccb7c11 Author:katleman Date: 2012-08-23 12:27 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/jaxp/rev/7dd81ccb7c11 Added tag jdk8-b53 for changeset 2c566f25c39f ! .hgtags

hg: hsx/hotspot-rt/corba: Added tag jdk8-b53 for changeset 63aeb7a2472f

2012-08-23 Thread john . coomes
Changeset: 16c82fc74695 Author:katleman Date: 2012-08-23 12:27 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/corba/rev/16c82fc74695 Added tag jdk8-b53 for changeset 63aeb7a2472f ! .hgtags

hg: hsx/hotspot-rt: Added tag jdk8-b53 for changeset febd7ff52800

2012-08-23 Thread john . coomes
Changeset: c1a277c6022a Author:katleman Date: 2012-08-23 12:27 -0700 URL: http://hg.openjdk.java.net/hsx/hotspot-rt/rev/c1a277c6022a Added tag jdk8-b53 for changeset febd7ff52800 ! .hgtags

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread David Holmes
Hi Mandy, While I understand what you are doing and that it "works" it is far from obvious upon code inspection that where you replace null with Foo.class.getClassLoader(), that the result would always be null. Another way to simplify this would be to add a new overload of Class.forName():

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread Mandy Chung
On 8/23/2012 2:26 PM, Dmitry Samersoff wrote: Mandy, 1. You replace null with getClassLoader() calls in couple of places. getClassLoader requires special permissions - RuntimePermission("getClassLoader") so probably you need to use doPrivileget() there. No, the caller's class load

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread serguei.spit...@oracle.com
Looks good. Thanks, Serguei On 8/23/12 12:33 PM, Mandy Chung wrote: On 8/23/2012 11:58 AM, Alan Bateman wrote: On 23/08/2012 18:43, Mandy Chung wrote: This change is to bring the jdk modularization changes from jigsaw repo [1] to jdk8. This allows the jdk modularization changes to be expos

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread Dmitry Samersoff
Mandy, 1. You replace null with getClassLoader() calls in couple of places. getClassLoader requires special permissions - RuntimePermission("getClassLoader") so probably you need to use doPrivileget() there. Did you test your changes with SecurityManager/No permissions for the tes

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread Alan Bateman
On 23/08/2012 20:33, Mandy Chung wrote: : Done. This is a good cleanup I considered to do too but missed in the previous webrev. http://cr.openjdk.java.net/~mchung/jdk8/webrevs/7193339/webrev.01/ Thanks for the review. Mandy That looks much better, so looks good to me. -Alan

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread Mandy Chung
On 8/23/2012 12:48 PM, serguei.spit...@oracle.com wrote: Mandy, It looks good. Thanks. Just a question below. || *src/share/classes/java/lang/management/ManagementFactory.java* 596 String intfName = mxbeanInterface.getName(); 599 " is not an instance of " + m

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread serguei.spit...@oracle.com
Mandy, It looks good. Just a question below. || *src/share/classes/java/lang/management/ManagementFactory.java* 596 String intfName = mxbeanInterface.getName(); 599 " is not an instance of " + mxbeanInterface); Did you want this?: 596 String intfName

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread Mandy Chung
On 8/23/2012 11:58 AM, Alan Bateman wrote: On 23/08/2012 18:43, Mandy Chung wrote: This change is to bring the jdk modularization changes from jigsaw repo [1] to jdk8. This allows the jdk modularization changes to be exposed for testing as early as possible and minimize the amount of changes c

Re: Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread Alan Bateman
On 23/08/2012 18:43, Mandy Chung wrote: This change is to bring the jdk modularization changes from jigsaw repo [1] to jdk8. This allows the jdk modularization changes to be exposed for testing as early as possible and minimize the amount of changes carried in the jigsaw repo that helps sync up

Review Request: 7193339 Prepare system classes be defined by a non-null module loader

2012-08-23 Thread Mandy Chung
This change is to bring the jdk modularization changes from jigsaw repo [1] to jdk8. This allows the jdk modularization changes to be exposed for testing as early as possible and minimize the amount of changes carried in the jigsaw repo that helps sync up jigsaw with jdk8/jdk9. Webrev at: http

hg: jdk8/tl/jdk: 7191587: (se) SelectionKey.interestOps does not defer changing the interest set to the next select [macosx]

2012-08-23 Thread alan . bateman
Changeset: de5a85353f4d Author:alanb Date: 2012-08-23 13:07 +0100 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/de5a85353f4d 7191587: (se) SelectionKey.interestOps does not defer changing the interest set to the next select [macosx] Reviewed-by: alanb Contributed-by: Jason T Gree

hg: jdk8/tl/jdk: 7193463: Improve registering signal handlers in java.lang.Terminator.setup()

2012-08-23 Thread luchsh
Changeset: e7b53fe85540 Author:dingxmin Date: 2012-08-23 16:28 +0800 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e7b53fe85540 7193463: Improve registering signal handlers in java.lang.Terminator.setup() Reviewed-by: dholmes, alanb ! src/solaris/classes/java/lang/Terminator.java