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 19:52:00 UTC

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

     [ https://issues.apache.org/jira/browse/JUNEAU-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory updated JUNEAU-248:
-----------------------------------
    Affects Version/s: 9.0.0

> 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
>    Affects Versions: 9.0.0
>            Reporter: Gary D. Gregory
>            Priority: Major
>
> 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)