RFR 8187742 Minimal set of bootstrap methods for dynamic constants

John Rose john.r.rose at oracle.com
Wed Nov 8 16:59:40 UTC 2017


On Nov 7, 2017, at 1:35 PM, 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.

("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.)

— John


More information about the core-libs-dev mailing list