예:
@Stateless
public class ExampleBean {
private static int counter = 0;
private AnotherBean anotherBean;
public void setAnotherBean(AnotherBean anotherBean) {
this.anotherBean = anotherBean;
counter++; // 오류: 여기에서 static 필드로 쓰기를 수행해서는 안 됩니다
}
}