Re: New candidate JEP: 371: Hidden Classes

2020-01-27 Thread David Lloyd
On Mon, Jan 27, 2020 at 12:30 PM Mandy Chung wrote: > > > > On 1/27/20 6:31 AM, Remi Forax wrote: > > I'm a bit curious about this: > > To invoke private nestmate instance methods from code in the hidden class, use > invokevirtual or invokeinterface instead of invokespecial. Generated bytecode > t

Re: New candidate JEP: 371: Hidden Classes

2020-01-27 Thread Mandy Chung
On 1/27/20 6:31 AM, Remi Forax wrote: I'm a bit curious about this: To invoke private nestmate instance methods from code in the hidden class, use invokevirtual or invokeinterface instead of invokespecial. Generated bytecode that uses invokespecial to invoke a private nestmate instance metho

Re: New candidate JEP: 371: Hidden Classes

2020-01-27 Thread Remi Forax
- Mail original - > De: "David Lloyd" > À: "David Holmes" > Cc: "hotspot-dev" , "core-libs-dev" > > Envoyé: Lundi 27 Janvier 2020 14:56:57 > Objet: Re: New candidate JEP: 371: Hidden Classes > On Fri, Jan 24, 2020 at 4:56 PM

Re: New candidate JEP: 371: Hidden Classes

2020-01-27 Thread David Lloyd
On Fri, Jan 24, 2020 at 4:56 PM David Holmes wrote: > > FYI. I'm a bit curious about this: > To invoke private nestmate instance methods from code in the hidden class, > use invokevirtual or invokeinterface instead of invokespecial. Generated > bytecode that uses invokespecial to invoke a priv

Re: New candidate JEP: 371: Hidden Classes

2020-01-27 Thread Claes Redestad
On 2020-01-26 13:18, Michael Paus wrote: Am 26.01.20 um 13:00 schrieb core-libs-dev-requ...@openjdk.java.net: Message: 1 Date: Sat, 25 Jan 2020 09:07:23 -0800 From: Mandy Chung This would help the reflective support for inline classes and new VM/language feature such that adding support in

Re: New candidate JEP: 371: Hidden Classes

2020-01-27 Thread Thomas Stüfe
On Sat, Jan 25, 2020 at 6:09 PM Mandy Chung wrote: > > > On 1/24/20 9:15 PM, Bernd Eckenfels wrote: > > Hello, > > > > I wonder will this (weak class) be useful for reflective method > > accessors and even be able to reduce/remove the need of > > jdk.internal.reflect.DelegatingClassLoaders? If so

Re: New candidate JEP: 371: Hidden Classes

2020-01-26 Thread Michael Paus
Am 26.01.20 um 18:24 schrieb Andrew Dinn: On 26/01/2020 12:18, Michael Paus wrote: Am 26.01.20 um 13:00 schrieb core-libs-dev-requ...@openjdk.java.net: This would help the reflective support for inline classes and new VM/language feature such that adding support in MethodHandle will work both b

Re: New candidate JEP: 371: Hidden Classes

2020-01-26 Thread Andrew Dinn
On 26/01/2020 12:18, Michael Paus wrote: > Am 26.01.20 um 13:00 schrieb core-libs-dev-requ...@openjdk.java.net: >> This would help the reflective support for inline classes and >> new VM/language feature such that adding support in MethodHandle >> will work both both. > > In that case watch out fo

Re: New candidate JEP: 371: Hidden Classes

2020-01-26 Thread Michael Paus
Am 26.01.20 um 13:00 schrieb core-libs-dev-requ...@openjdk.java.net: Message: 1 Date: Sat, 25 Jan 2020 09:07:23 -0800 From: Mandy Chung To: Bernd Eckenfels Cc: core-libs-dev Libs Subject: Re: New candidate JEP: 371: Hidden Classes Message-ID: Content-Type: text/plain; charset=windows-1252

Re: New candidate JEP: 371: Hidden Classes

2020-01-25 Thread Mandy Chung
On 1/24/20 9:15 PM, Bernd Eckenfels wrote: Hello, I wonder will this (weak class) be useful for reflective method accessors and even be able to reduce/remove the need of jdk.internal.reflect.DelegatingClassLoaders? If so, that would be a good example to mention in the JEP (it only mentions

Re: New candidate JEP: 371: Hidden Classes

2020-01-24 Thread Bernd Eckenfels
Hello, I wonder will this (weak class) be useful for reflective method accessors and even be able to reduce/remove the need of jdk.internal.reflect.DelegatingClassLoaders? If so, that would be a good example to mention in the JEP (it only mentions Proxies). (And I was really surprised to see N