@@ -187,9 +187,9 @@ private TypedValue readProperty(TypedValue contextObject, EvaluationContext eval
187
187
try {
188
188
return accessorToUse .read (evalContext , contextObject .getValue (), name );
189
189
}
190
- catch (AccessException ex ) {
191
- // this is OK - it may have gone stale due to a class change,
192
- // let's try to get a new one and call it before giving up
190
+ catch (Exception ex ) {
191
+ // This is OK - it may have gone stale due to a class change,
192
+ // let's try to get a new one and call it before giving up...
193
193
this .cachedReadAccessor = null ;
194
194
}
195
195
}
@@ -212,7 +212,7 @@ private TypedValue readProperty(TypedValue contextObject, EvaluationContext eval
212
212
}
213
213
}
214
214
}
215
- catch (AccessException ex ) {
215
+ catch (Exception ex ) {
216
216
throw new SpelEvaluationException (ex , SpelMessage .EXCEPTION_DURING_PROPERTY_READ , name , ex .getMessage ());
217
217
}
218
218
}
@@ -238,9 +238,9 @@ private void writeProperty(TypedValue contextObject, EvaluationContext evalConte
238
238
accessorToUse .write (evalContext , contextObject .getValue (), name , newValue );
239
239
return ;
240
240
}
241
- catch (AccessException ex ) {
242
- // this is OK - it may have gone stale due to a class change,
243
- // let's try to get a new one and call it before giving up
241
+ catch (Exception ex ) {
242
+ // This is OK - it may have gone stale due to a class change,
243
+ // let's try to get a new one and call it before giving up...
244
244
this .cachedWriteAccessor = null ;
245
245
}
246
246
}
@@ -291,7 +291,6 @@ public boolean isWritableProperty(String name, TypedValue contextObject, Evaluat
291
291
return false ;
292
292
}
293
293
294
- // TODO when there is more time, remove this and use the version in AstUtils
295
294
/**
296
295
* Determines the set of property resolvers that should be used to try and access a property
297
296
* on the specified target type. The resolvers are considered to be in an ordered list,
0 commit comments