RFR 8187742 Minimal set of bootstrap methods for dynamic constants

Paul Sandoz paul.sandoz at oracle.com
Wed Nov 8 17:03:11 UTC 2017


> On 8 Nov 2017, at 08:59, John Rose <john.r.rose at oracle.com> wrote:
> 
> On Nov 7, 2017, at 1:35 PM, forax at univ-mlv.fr <mailto:forax at univ-mlv.fr> wrote:
>> 
>> perhaps getFinalStatic, because it's restricted to final field.
> 
> The restriction to final field is because we are expecting the
> method to be used from condy, where it seems to be a syntax
> error to sample a constant from a non-constant variable.
> 
> That said, I too would prefer to make it explicit (even in the name)
> that the BSM applies only to static final fields.
> 
> So +1 for getStaticFinal instead of getStatic.  We also discussed
> this internally back and forth.   Your comment pushed me over
> the edge.
> 

Updated the CSR to reflect this. I will update the webrev soon.


> ("getFinalStatic" is wrong BTW because "Final" is an extra
> constraint after "getStatic", and because "static final" is the
> usual written order for the corresponding modifiers, not
> "final static", at least in the relevant source bases.)
> 

+1

Paul.


More information about the core-libs-dev mailing list