Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
9.0.0
-
None
-
None
Description
The bean below only has one property, f1, due to the @Bean(p='f1') annotation, but also contains a @Beanp("f2") annotated method.
@Bean(p="f1") public static class A1 { public int f1; @Beanp("f2") public int f2() {...} }
In this odd case, you can call get/put on the "f2" property, but it shouldn't show up in keySet()/entrySet().
I agree that containsKey() should match the behavior of keySet().contains(). We should open a bug.