I have a simple EJB:
@Stateless
public class EJB {
public void aMethod() {
// ...
Event event = createEvent();
// ...
}
private static Event createEvent() {
Event event = new Event();
// ...
return event;
}
}
IntelliJ Ultimate shows an error because there is a static method inside an EJB.
Using JBoss EAP the EJB works fine. Does the EJB spec forbids using (private) static "helper" methods? Why? And why does it work with JBoss EAP (and most likely other application servers)?