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

Obsolete UseImplicitStableValues

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 13
    • hotspot
    • None
    • behavioral
    • minimal
    • Use of this diagnostic flag has no effect since JDK 9
    • add/remove/modify command line option

      Summary

      Obsolete UseImplicitStableValues in JDK 13 and expire it in JDK 14.

      Problem

      UseImplicitStableValues was added to treat String.value as a stable, trusted field, but was made redundant when String.value was explicitly annotated with @Stable in JDK-8150180.

      Solution

      Obsolete and expire UseImplicitStableValues, removing the small piece of code in the compiler guarded by this.

      Specification

      Obsolete UseImplicitStableValues in JDK 13.

            redestad Claes Redestad
            redestad Claes Redestad
            Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: