> From: Eric M. Kascic [mailto:[EMAIL PROTECTED] > Subject: Esoteric class loading question/loading constraints/loader > constraints
> Based upon my understanding of how the JVM tries to ensure > "type safety" across ClassLoaders, StandardClassLoader > loading the second version of class X should fail with a > LinkageError I'm not aware of any such constraint. It's perfectly legal to load the same class multiple times, as long as each copy is handled by a separate loader. The behavior you're observing appears to conform to the spec. The type safety constraints insure that names in different namespaces (class loaders) refer to the same types if there's a reference across namespaces; beyond that, there's no restriction on having the same name in multiple namespaces. - Chuck --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
