Versions Compared

Key

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

In a JVM, "Two classes are the same class (and consequently the same type) if they are loaded by the same class loader, and they have the same fully qualified name" [JVMSpec 1999]. Two classes with the same name but different package names are distinct, as are two classes with the same fully qualified name loaded by different class loaders.

...

MITRE CWE

CWE-486. Comparison of classes by name

Bibliography

[Christudas 2005]

Internals of Java Class Loading

[JVMSpec 1999]

§2.8.1, Class Names

[McGraw 1998]

Twelve rules for Developing More Secure Java Code

[Wheeler 2003]

Java Secure Programming for Linux and UNIX HOWTO

 

...

      Rule 05: Object Orientation (OBJ)      OBJ10-J. Do not use public static nonfinal variablesImage Added      Image Added