JDK-8340201 : Misspelled constant `AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES`
  • Type: CSR
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 24
  • Submitted: 2024-09-16
  • Updated: 2024-09-16
  • Resolved: 2024-09-16
Related Reports
CSR :  
Relates :  
Description
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
     }
 
     /**
```

Comments
Moving to Approved.
16-09-2024

Note that the scope is "SE" for `java.*` modules, and "JDK" for `jdk.*` modules, usually.
16-09-2024