Wiki Markup |
---|
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|AA. Bibliography#JVMSpec 99]\]. A class with the same name but a different package name is different, and a class with the same fully qualified name but which has been loaded by a different class loader is also different. |
...
Wiki Markup |
---|
\[[Christudas 2005|AA. Bibliography#Christudas 05]\] \[[JVMSpec 1999|AA. Bibliography#JVMSpec 99]\] [§2§2.8.1 Class Names|http://java.sun.com/docs/books/jvms/second_edition/html/Concepts.doc.html] \[[Mcgraw 1998|AA. Bibliography#Mcgraw 98]\] \[[MITRE 2009|AA. Bibliography#MITRE 09]\] [CWE ID 486|http://cwe.mitre.org/data/definitions/486.html] "Comparison of Classes by Name" \[[Wheeler 2003|AA. Bibliography#Wheeler 03]\] [Java|http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/java.html] |
...
OBJ00OBJ05-J. Limit extensibility of classes and methods with invariants to trusted subclasses onlyDo not allow access to partially initialized objects 04. Object Orientation (OBJ) OBJ07-J. Understand how a superclass can affect a subclass