JDK-8161256

Remi Forax forax at univ-mlv.fr
Mon Jun 25 16:37:49 UTC 2018


Hi Peter,
you can simulate the equivalent of a Constant_Bytes by base64 encoding your bytes and pass the resulting string to a Constant Dynamic which at runtime will load it, decode it and return it as a byte array.

Rémi 

----- Mail original -----
> De: "Paul Sandoz" <paul.sandoz at oracle.com>
> À: "Peter" <jini at zeus.net.au>
> Cc: "valhalla-dev" <valhalla-dev at openjdk.java.net>
> Envoyé: Lundi 25 Juin 2018 18:28:41
> Objet: Re: JDK-8161256

> Hi Peter,
> 
> Moving to the Valhalla list, which is probably the closest matching list.
> 
> We have given some thought about these additional constant pool tags but nothing
> concrete has arisen from that with regards to a JEP (and thus targeting the
> current non-existent JEP to a release would be even further out). As of now
> there has not been a strong requirement/priority for such tags but there might
> be in the future if other features can benefit from them.
> 
> I will likely talk about these and other possible enhancements at JVMLS this
> year.
> 
> Paul.
> 
> 
>> On Jun 22, 2018, at 6:51 PM, Peter <jini at zeus.net.au> wrote:
>> 
>> Will a JEP be created for general data in constant pools?
>> 
>> CONSTANT_Bytes - tag byte 2
>> CONSTANT_Group - tag byte 13
>> 
>> The attraction of allowing general data in constant pools, is that it may
>> stabilise the constant pool, there have been a number of additions to the
>> constant pool since Java 8 and this feature, while adding two more constants,
>> reduces future need or motivation for growing the constant pool.
>> 
>> It's my understanding that Java 11 will be a long term support release, like
>> Java 8.   Will this be added in Java 12?
>> 
>> Thanks,
>> 
> > Peter.



More information about the valhalla-dev mailing list