On Fri, 28 Oct 2022 19:34:37 GMT, Jim Laskey <jlas...@openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java line >> 118: >> >>> 116: * @since 20 >>> 117: */ >>> 118: public static final int MAX_INDY_CONCAT_ARG_SLOTS = 200; >> >> I do not think it's a good idea to make that constant available for >> everybody given that it's an artefact of the implementation. > > There have been several requests to make it public in the past. You really > can't use the methods in this class unless you know the value. Better to have > the value exposed instead of developers transcribing the value into their > code. But it's an implementation details, BTW i wonder if the limitation is still valid, i know that John has changed the implementation of the BSM in that area. ------------- PR: https://git.openjdk.org/jdk/pull/10889