On Tue, 17 May 2022 14:28:11 GMT, Rémi Forax <fo...@openjdk.org> wrote:
>> What about using MethodTypeDesc/ClassDesc as building block? > > yes, it should be less expensive, the ClassDesc still need to be constructed > from Class to allow refactoring. Can't wait for constant folding :) I'll pull the `methodType(void.class).descriptorString()` into a separate constant, and reuse that. I don't think it's worth it to spend too much time here at this point though, since this code is only executed once. ------------- PR: https://git.openjdk.java.net/jdk/pull/8685