Skip to content

Conversation

@JasonFengJ9
Copy link
Member

@JasonFengJ9 JasonFengJ9 commented Nov 26, 2025

JEP500 adds --enable-final-field-mutation/--illegal-final-field-mutation

Use addPropertiesForOptionWithAssignArg() to find all --enable-final-field-mutation options, addPropertyForOptionWithEqualsArg() to find and consume the last --illegal-final-field-mutation options.

Passes following tests:

java/lang/invoke/unreflect/UnreflectTest.java
java/lang/invoke/VarHandles/accessibility/TestFieldLookupAccessibility.java
java/lang/reflect/AccessibleObject/HiddenClassTest.java
java/lang/reflect/Field/mutateFinals/cli/CommandLineTest.java
java/lang/reflect/Field/mutateFinals/jar/ExecutableJarTest.java
java/lang/reflect/Field/mutateFinals/jni/JNIAttachMutatorTest.java
java/lang/reflect/Field/mutateFinals/modules/Driver.java
java/lang/reflect/Field/mutateFinals/MutateFinalsTest.java
java/lang/reflect/Field/NegativeTest.java
java/lang/reflect/Field/Set.java
java/util/jar/Attributes/NullAndEmptyKeysAndValues.java
java/util/logging/FileHandlerLongLimit.java

Related to

Signed-off-by: Jason Feng [email protected]

@JasonFengJ9
Copy link
Member Author

FYI @babsingh

Use addPropertiesForOptionWithAssignArg() to find all
--enable-final-field-mutation options,
addPropertyForOptionWithEqualsArg() to find and consume the last
--illegal-final-field-mutation options.

Signed-off-by: Jason Feng <[email protected]>
@JasonFengJ9 JasonFengJ9 changed the title JEP500 add --enable-final-field-mutation/--illegal-final-field-mutation JEP500 adds --enable-final-field-mutation/--illegal-final-field-mutation Nov 27, 2025
@JasonFengJ9
Copy link
Member Author

Added a change to fix java/lang/reflect/Field/mutateFinals/cli/CommandLineTest.java.

Now all JEP500 tests previously excluded can be re-enabled via

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant