Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are pedantic rules?

pedantic rules
0
Posted

What are pedantic rules?

0
0

1) Not actually required by our runtime, meaning that your code will work as is. 2) Questionable altogether, and may well be eliminated from the EJB specification when people realize how annoying they are. 3) Violated in almost every EJB program ever written, both in our product and in all the various books ever written about EJB. Currently, there are four warnings that have been classified as pedantic: 1) Throwing java.rmi.RemoteException from a bean method is deprecated. 2) Static fields in the bean class must be final. (This is actually a useful rule, which is violated by the Java compiler, as per a previous FAQ.) 3) The primary key type must define the equals(Object) method. 4) The primary key type must define the hashCode() method. The behavior of the verifier is that, by default, these rules are ignored. Adding the -pedantic flag to the verifier causes violations of these rules to issue warnings. (Note that for deployment purposes, warnings are ignored, meaning that you can go ah

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123