• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web Application Class loader.

 
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some one reply.
I dont want to mug it up
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic