Conditions signaled when setting a field is wrong, either because the field is final or because the value supplied is wrong.
java-field-setting-error-field-name
java-field-setting-error-class-name
java-field-setting-error-class-name-for-setting
java-field-setting-error-new-value
Conditions of 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 - 20 Sep 2017