MethodReference.MethodValueRef.setValue throws SpelEvaluationException

Closes gh-22336
This commit is contained in:
Juergen Hoeller 2019-02-05 00:43:56 +01:00
parent ca7634dfe8
commit 59a9c8e004
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2018 the original author or authors. * Copyright 2002-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -395,7 +395,7 @@ public class MethodReference extends SpelNodeImpl {
@Override @Override
public void setValue(@Nullable Object newValue) { public void setValue(@Nullable Object newValue) {
throw new IllegalAccessError(); throw new SpelEvaluationException(0, SpelMessage.NOT_ASSIGNABLE, MethodReference.this.name);
} }
@Override @Override