-
CSR
-
Resolution: Approved
-
P4
-
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
}
/**
- csr of
-
JDK-8340200 Misspelled constant `AttributesProcessingOption.DROP_UNSTABLE_ATRIBUTES`
- Resolved
- relates to
-
JDK-8334712 JEP 484: Class-File API
- Completed