We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Binder / BeanPropertySet does not find setter in nested interface where Base interface has just the getters
Binder should find getter and setter
class BeanPropertyTest {
interface Base { String getInfo(); } interface MyTest extends Base { void setInfo(String value); } interface MyTest2 extends Base { @Override String getInfo(); void setInfo(String value); } @Test void testBeanProperty1() { PropertySet<MyTest> userInfoPropertySet = BeanPropertySet.get(MyTest.class); Optional<PropertyDefinition<MyTest, ?>> infoProperty = userInfoPropertySet.getProperty("info"); assertTrue(infoProperty.isPresent()); assertNotNull(infoProperty.get().getGetter()); assertTrue(infoProperty.get().getSetter().isPresent()); } @Test void testBeanProperty2() { PropertySet<MyTest2> userInfoPropertySet = BeanPropertySet.get(MyTest2.class); Optional<PropertyDefinition<MyTest2, ?>> infoProperty = userInfoPropertySet.getProperty("info"); assertTrue(infoProperty.isPresent()); assertNotNull(infoProperty.get().getGetter()); assertTrue(infoProperty.get().getSetter().isPresent()); }
}
The text was updated successfully, but these errors were encountered:
Maybe just a typo, but the setInfo method does not declare a parameter
setInfo
Sorry, something went wrong.
thx for the info, changed in bug report
Similar or maybe exact the same issue #18524, needs to be checked.
No branches or pull requests
Description of the bug
Binder / BeanPropertySet does not find setter in nested interface where Base interface has just the getters
Expected behavior
Binder should find getter and setter
Minimal reproducible example
class BeanPropertyTest {
}
Versions
The text was updated successfully, but these errors were encountered: