Java Beans, BeanUtils, and the Boolean wrapper class

前端 未结 3 1123
情深已故
情深已故 2021-01-01 19:42

I\'m using BeanUtils to manipulate Java objects created via JAXB, and I\'ve run into an interesting issue. Sometimes, JAXB will create a Java object like this:



        
3条回答
  •  梦谈多话
    2021-01-01 19:58

    Finally I've found legal confirmation:

    8.3.2 Boolean properties

    In addition, for boolean properties, we allow a getter method to match the pattern:

    public boolean is();

    From JavaBeans specification. Are you sure you haven't came across JAXB-131 bug?

提交回复
热议问题