Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Application Class loader.

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the Web Application Class loader section of Servlet 2.4 specification
As described in the J2EE license agreement, servlet containers that are not part of a J2EE product should not allow the application to
override J2SE platform classes, such as those in the java.* and javax.* namespaces, that J2SE does not allow to be modified. Also,
servlet containers that are part of a J2EE product should not allow the application to override J2SE or J2EE platform classes,
such as those in java.* and javax.* namespaces, that either J2SE or J2EE do not allow to be modified.

Above both sentences have "that either J2SE or J2EE do not allow to be modified."
Does override mean extending class? If yes i can offcourse extend any non-final class in the name space *.java & *.javax, In fact the
very basic servlet extends HttpServlet. So what excatly does the above sentences defined in the specs mean?
Based on the answer , I can conclude whether the answer to Q - 14 [pg 610, From HFServlets & JSP 1 st edition] .
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some one reply.
I dont want to mug it up
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that it says "overriding classes". If that meant extending, it would say "overriding methods".

It really talks about modifying classes; in other words, replacing an existing class in the java.* and javax.* hierarchies with a different one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic