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 Property.java [SPR-15507] #20066

Closed
spring-issuemaster opened this issue May 2, 2017 · 0 comments

Comments

@spring-issuemaster
Copy link
Collaborator

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.

See

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


Affects: 4.3.8

Referenced from: commits 817e80c, aa8cf19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.