Using jars that use java.beans classes (Introspector, BeanInfo or PropertyDescriptor)

前端 未结 2 1202
耶瑟儿~
耶瑟儿~ 2020-12-02 19:18

I have 3rd party jar (which I can\'t change) that uses java.beans.Introspector, java.beans.BeanInfo and java.beans.PropertyDescripto

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 19:48

    The only solution is a maintenance nightmare: Fork all 3th party jars from source and rewrite them so they don't use java.beans.* classes (possibly by replacing them for openbeans).

    Then, every time one of those 3th party jars releases a hotfix (for example for a critical security bug), do that all over again.

提交回复
热议问题