Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Not a setter" exception cannot be be thrown in [SPR-15507] #20066

spring-projects-issues opened this issue May 2, 2017 · 0 comments
in: core type: bug


Copy link

@spring-projects-issues spring-projects-issues commented May 2, 2017

Phil Webb opened SPR-15507 and commented

Someone from the community raised this to me:

The Property class includes the following:

	int index = this.writeMethod.getName().indexOf("set") + 3;
			if (index == -1) {
				throw new IllegalArgumentException("Not a setter method");

Since the index is set with +3 there's no way for the exception to throw.


int index = this.writeMethod.getName().indexOf("set") + 3;

Affects: 4.3.8

Referenced from: commits 817e80c, aa8cf19

@spring-projects-issues spring-projects-issues added type: bug in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.3.9 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: core type: bug
None yet

No branches or pull requests

2 participants