• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Specification Errors

 
J J Wright
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've read a few specifications from Sun over the years, but I have to say the EJB 3.0 spec is terrible for grammatical, example code, and factual errors, not to mention the inconsistent use of syntax.

All in all this gives me little assurance when studying for this cert - i.e. is what I'm reading here really correct?

As an example I've just been brushing up on Interceptors and came across this. I'm sure you can all spot the error. Perhaps it should be included in the exam under "what's wrong with this statement":

"The interceptor deployment descriptor element is used to specify the interceptor methods of an interceptor class. The interceptor methods are specified by using the around-invoke, pre-construct, post-destroy, pre-passivate, and post-activate elements.

At most one method of a given interceptor class can be designated as an around-invoke method, a pre-construct method, a post-destroy method, a pre-passivate method, or a post-activate method, regardless of whether the deployment descriptor is used to define interceptors or whether some combination of annotations and deployment descriptor elements is used."

Does any one at Sun actually check these specs before they release them into the wild??!!

The crazy thing is that if you do a Google for "pre-construct" you'll find that it's been replicated all over the place. I mean honestly, come on Sun - what are you meant to do in pre-construct method??!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic