Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Conversely, the assumption that two classes deriving from the same codebase are themselves the same is error-prone. While this assumption is commonly observed to be true in desktop applications, it is typically not the case with J2EE servlet containers. The containers may use different class loader instances to deploy and recall applications at runtime, without having to restart the JVM. In such situations, two objects , whose classes come from the same codebase , may appear to the JVM to be two different classes. Also note that the equals() method may not return true when comparing objects originating from the same codebase.

...