示例

public class BeanClass implements javax.ejb.EntityBean {
private static Object staticField;

//other methods that must implement the interface
}

解决方案
Declare static fields as final.


public class BeanClass implements javax.ejb.EntityBean {
private static final Object staticField;

//other methods that must implement the interface
}