Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: normativization

Wiki Markup
            A nested class is any class whose declaration occurs within the body of another class or interface \[[JLS 2005|AA. Bibliography#JLS 05]\]. The use of a nested class is error-prone unless the semantics are well understood. A common notion is that only the outer class can access the contents of the nested class. Not only does the nested class have access to the private fields of the outer class, the same fields can be accessed by another class within the package depending on whether the nested class is declared public or if it contains public methods or constructors. ByTherefore default, the {{javac}} compiler converts the accessibility ofnested class must not expose the private methodsmembers of athe nestedouter class to package-private. external classes or packages. 

Wiki Markup
Also, according to the _Java Language Specification_ \[[JLS 2005|AA. Bibliography#JLS 05]\], [§8.3|http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.3] "Field Declarations,"

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0636a3c8c195ed73-0d4ab253-4f514ebb-929a9fc6-c79b9c05241bcb83d6e49f53"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§8.1.3, Inner Classes and Enclosing Instances

http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.1.3] ]]></ac:plain-text-body></ac:structured-macro>

 

§8.3 "Field Declarations"

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b7a9f8bad3759823-73f6f3f0-4ac54ad0-ba15a0a4-14846d99c2ef8b6d938b7e12"><ac:plain-text-body><![CDATA[

[[Long 2005

AA. Bibliography#Long 05]]

§2.3, Inner Classes

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="08445afa6dd9e512-12ce5b95-48f64363-825ca1b8-3ed2ff5a6f9137ccf3bdabf1"><ac:plain-text-body><![CDATA[

[[McGraw 1999

AA. Bibliography#McGraw 99]]

Securing Java, Getting Down to Business with Mobile Code

]]></ac:plain-text-body></ac:structured-macro>

...