Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-30 Thread Aman Sharma
Chen Liang Cc: David Holmes; core-libs-dev@openjdk.org; leyden-...@openjdk.org Subject: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` Hi, Another thing I wanted to look into in this thread was the order of fields in the Proxy classes generated. They are also based on

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-25 Thread Chen Liang
cience (TCS) > <https://www.kth.se/profile/amansha>https://algomaster99.github.io/ > -- > *From:* Chen Liang > *Sent:* Wednesday, May 22, 2024 9:37:16 PM > *To:* Aman Sharma > *Cc:* core-libs-dev@openjdk.org; leyden-...@openjdk.org > *Subject:* Re: De

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-22 Thread Joseph D. Darcy
On 5/22/2024 11:19 AM, Aman Sharma wrote: Hi, [snip] Notice the difference in the order of fields and `helpCommand` method is mapped to a different field name in both classes. This happens because the method array returned by `getMethods` is not sorted in any particular order

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-22 Thread Chen Liang
s://www.kth.se/profile/amansha> > <https://www.kth.se/profile/amansha>https://algomaster99.github.io/ > ------ > *From:* Aman Sharma > *Sent:* Wednesday, May 22, 2024 4:12:19 PM > *To:* Chen Liang > *Cc:* David Holmes; core-libs-dev@openjdk.org; leyden-

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-22 Thread Aman Sharma
id Holmes; core-libs-dev@openjdk.org; leyden-...@openjdk.org Subject: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` Hi Chen, That's clear. Thanks for letting me know. I guess then Project Leyden is working on naming the hidden classes deterministically to achieve their

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-22 Thread Aman Sharma
a>https://algomaster99.github.io/ From: Chen Liang Sent: Wednesday, May 22, 2024 1:35:46 PM To: Aman Sharma Cc: David Holmes; core-libs-dev@openjdk.org; leyden-...@openjdk.org Subject: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` Hi Aman, We have tried defining Proxy as hidden

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-22 Thread Chen Liang
gy > > School of Electrical Engineering and Computer Science (EECS) > > Department of Theoretical Computer Science (TCS) > > < > http://www.kth.se><https://www.kth.se/profile/amansha><https://www.kth.se/profile/amansha > > > > <https://www.kth.se/p

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-20 Thread Aman Sharma
ub.io/ > <https://algomaster99.github.io/> > ---------------- > *From:* David Holmes > *Sent:* Monday, May 20, 2024 2:59:17 AM > *To:* Aman Sharma; liangchenb...@gmail.com > *Cc:* core-libs-dev@openjdk.org; leyden-...@openjdk

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-20 Thread David Holmes
liangchenb...@gmail.com *Cc:* core-libs-dev@openjdk.org; leyden-...@openjdk.org *Subject:* Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` On 17/05/2024 9:43 pm, Aman Sharma wrote: Hi Chen,   > java.lang.invoke.LambdaForm$MH/0x0200cc000400 I do see this as output when

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-20 Thread Aman Sharma
17 AM To: Aman Sharma; liangchenb...@gmail.com Cc: core-libs-dev@openjdk.org; leyden-...@openjdk.org Subject: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` On 17/05/2024 9:43 pm, Aman Sharma wrote: > Hi Chen, > > > java.lang.invoke.LambdaForm$MH/0x0200cc000400

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-19 Thread David Holmes
m *To:* Aman Sharma *Cc:* core-libs-dev@openjdk.org ; leyden-...@openjdk.org *Subject:* Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` Hi Aman, For `-verbose:class`, it's a JVM argument instead of a program argument; so when you run a java program like `java Main`, you shoul

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-17 Thread Aman Sharma
Technology https://algomaster99.github.io/ From: liangchenb...@gmail.com Sent: Friday, May 17, 2024 1:23:58 pm To: Aman Sharma Cc: core-libs-dev@openjdk.org ; leyden-...@openjdk.org Subject: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` Hi Aman, For `-ve

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-17 Thread -
mansha> > <https://www.kth.se/profile/amansha> > <https://www.kth.se/profile/amansha>https://algomaster99.github.io/ > -- > *From:* core-libs-dev on behalf of Roger > Riggs > *Sent:* Friday, May 17, 2024 4:57:46 AM > *To:* core-lib

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-17 Thread Aman Sharma
profile/amansha>https://algomaster99.github.io/ From: core-libs-dev on behalf of Roger Riggs Sent: Friday, May 17, 2024 4:57:46 AM To: core-libs-dev@openjdk.org Subject: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` Hi Aman, You may also

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-16 Thread Roger Riggs
ience (TCS) <https://www.kth.se/profile/amansha>https://algomaster99.github.io/ <https://algomaster99.github.io/> *From:* liangchenb...@gmail.com *Sent:* Thursday, May 16, 2024 5:52:03 AM *To:* Aman Sharma; core-libs-

Re: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-16 Thread Aman Sharma
/profile/amansha>https://algomaster99.github.io/ From: Aman Sharma Sent: Thursday, May 16, 2024 2:11:59 PM To: liangchenb...@gmail.com; core-libs-dev Cc: Martin Monperrus Subject: Re: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` Hi, Than

Re: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-16 Thread Aman Sharma
liangchenb...@gmail.com Sent: Thursday, May 16, 2024 5:52:03 AM To: Aman Sharma; core-libs-dev Cc: Martin Monperrus Subject: Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy` Hi Aman, I think you meant CVE-2021-42392 instead of 2022. For your approach of an "allowlist&qu

Re: Deterministic naming of subclasses of `java/lang/reflect/Proxy`

2024-05-15 Thread -
Hi Aman, I think you meant CVE-2021-42392 instead of 2022. For your approach of an "allowlist" for Java runtime, project Leyden is looking to generate a static image [1], that > At run time it cannot load classes from outside the image, nor can it create classes dynamically. Leyden mainly avoids t