Conditions signaled when setting a field is wrong, either because the field is final or because the value supplied is wrong.
lw-ji
java-field-setting-error-field-namejava-field-setting-error-class-namejava-field-setting-error-class-name-for-settingjava-field-setting-error-new-value
Instances of the condition class java-field-setting-error are signaled when setting a field is wrong, either because the field is final or because the value supplied is wrong. The setting can happen either by a call to set-java-field or by using (setf name) where name was defined by either define-field-accessor or setup-field-accessor.
The new value returned by the accessor java-field-setting-error-new-value can be the keyword :is-final, which indicates that the error occurs because the field is final. Otherwise it is the new value, which is of an unacceptable type. The class-name of the field can be read using java-field-setting-error-class-name-for-setting (this is what java-field-class-name-for-setting would return for the same field).
LispWorks® User Guide and Reference Manual - 18 Feb 2025 15:32:32