Uploaded image for project: 'Juneau'
  1. Juneau
  2. JUNEAU-248

BeanMap containsKey() and keySet().contains() don't match

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0.0
    • None
    • Code
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: