(original) (raw)

On Jul 21, 2015, at 11:48 AM, Vladimir Ivanov <vladimir.x.ivanov@oracle.com> wrote:

Fixing the problem for static final fields doesn't look like a hard problem. JIT can inspect field holder class state and skip the optimization if the class hasn't been fully initialized yet.

And a slushy bit (for use by reflection, etc.) can handle the corresponding non-static case. — John