You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a class with a property (getter/setter) of type Bar.
Create a subclass that overrides the getter narrowing the return type to MoreBar extends Bar.
Try to set the property in XML config.
Expectation
It worked in 3.1.2, so it should work now.
Failing Exception
org.springframework.beans.factory.BeanCreationException: Error creating bean ...
...
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'bar' of bean class [...]: Bean property 'bar' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Affects: 3.1.4
0 votes, 5 watchers
The text was updated successfully, but these errors were encountered:
I was running the test using Open JDK 1.6.0_27 and 1.7.0_21 (with no difference).
I've trouble setting the priority.
For me this is a BLOCKER preventing me from upgrading from 3.1.2 to 3.1.4.
(I know I should fix the code, but that is not so simple in big project -- especially if I don't have 100% test coverage yet.)
As far as I can verify, this has been fixed in the 4.0 line already. However, the test fails against the current state in the 3.2.x branch. I'll make sure to backport whatever's necessary from 4.0 to 3.2.5 there.
Actually, it's not fixed in 4.0 itself, it's fixed in JDK 8 which we run the 4.0 tests against by default. So we'll have to find a fix for 4.0 as well when running on JDK 6/7.
We're using the JDK's JavaBeans Introspector, so we 'inherit' any new behavior implemented there.
Piotr Findeisen opened SPR-10995 and commented
Steps to Reproduce
Bar
.MoreBar extends Bar
.Expectation
It worked in 3.1.2, so it should work now.
Failing Exception
Affects: 3.1.4
0 votes, 5 watchers
The text was updated successfully, but these errors were encountered: