Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8367698

[lworld] New lint category `initialization` for code that would not be allowed in the prologue

XMLWordPrintable

      this subsection of [1] needs to be implemented, see "Compilation warnings":

      A lint warning (category TBD) identifies code in instance field initializers and implicit-'super()' constructors of identity classes that would not be allowed in early construction due to a 'this' dependency. (This warning anticipates a future migration in which the early construction behavior of value classes is also applied to identity classes.) There is no warning for a field that is left unassigned before an explicit 'super(...)' call.

      [1] https://bugs.openjdk.org/browse/JDK-8317277

            vromero Vicente Arturo Romero Zaldivar
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: