最近在看servlet-spec2.5文档时,在中间有这样一段话:
previous generations of containers created new class loaders to load a servlet,distinct from class loaders used to
load other servlets or classes used in the servlet context.this could cause object references within a servlet context to point at unexcepted classes or objects,and cause unexcepted behavior.
这里所说的为每个servlet 创建一个class loader 进行加载,会发生对象引用的问题,这里的问题指的是什么,是因为jvm的classloader机制的原因吗,还是其他,哪位大牛可以解答一下