Use early field initialization for java.lang.invoke generated code

XMLWordPrintable

      In the JDK, currently only these 3 sites generate constructors that assign fields after super calls:

      ClassSpecializer::generateConcreteSpeciesCodeFile
      InnerClassLambdaMetafactory::generateClassInitializer
      MethodHandleProxies::createTemplate

      They should switch to early construction by default legal in bytecode. This allows their fields to easily migrate to strictly initialized once Strict Fields JEP is delivered.

            Assignee:
            Chen Liang
            Reporter:
            Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: