You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/06/26 18:43:00 UTC

[jira] [Created] (JUNEAU-248) BeanMap containsKey() and keySet().contains() don't match

Gary D. Gregory created JUNEAU-248:
--------------------------------------

             Summary: BeanMap containsKey() and keySet().contains() don't match
                 Key: JUNEAU-248
                 URL: https://issues.apache.org/jira/browse/JUNEAU-248
             Project: Juneau
          Issue Type: Bug
          Components: Code
            Reporter: Gary D. Gregory


The bean below only has one property, f1, due to the @Bean(p='f1') annotation, but also contains a @Beanp("f2") annotated method.
{noformat}
 @Bean(p="f1") public static class A1 {
  public int f1;
  @Beanp("f2") public int f2() {...}
}
{noformat}
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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)