Misspelled constant `AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES`

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 24
    • Component/s: core-libs
    • None
    • minimal
    • The field is not directly used in the JDK itself. The risk would be that programs relying on the preview version would fail to compile after the fix; however, no compatibility guarantees are provided for preview versions.
    • Java API
    • SE

      Summary

      Apply a trivial fix for the accidental misspelling of AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES.

      Problem

      The constant has a small spelling error.

      Solution

      We'll apply the obvious spelling fix for this one.

      The field name will be changed from DROP_UNSTABLE_ATRIBUTES to DROP_UNSTABLE_ATTRIBUTES.

      Specification

      --- a/src/java.base/share/classes/java/lang/classfile/ClassFile.java
      +++ b/src/java.base/share/classes/java/lang/classfile/ClassFile.java
      @@ -295,7 +295,7 @@ enum AttributesProcessingOption implements Option {
               DROP_UNKNOWN_ATTRIBUTES,
       
               /** Drop unknown and unstable original attributes during transformation */
      -        DROP_UNSTABLE_ATRIBUTES;
      +        DROP_UNSTABLE_ATTRIBUTES
           }
       
           /**
      

            Assignee:
            David Lloyd
            Reporter:
            David Lloyd
            Chen Liang
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: