Misuse of the word static in "Local Classes"

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: docs
    • None

      In http://docs.oracle.com/javase/tutorial/java/javaOO/localclasses.html

      Local Classes Are Similar To Inner Classes

      Local classes are similar to inner classes because they cannot define or declare any static members. Local classes in static methods, such as the class PhoneNumber, which is defined in the static method validatePhoneNumber, can only refer to static members of the enclosing class. For example, if you do not define the member variable regularExpression as static, then the Java compiler generates an error similar to "non-static variable regularExpression cannot be referenced from a static context."

      The first sentence in this paragraph is incorrect and makes no sense.

            Assignee:
            Unassigned
            Reporter:
            Raymond Gallardo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: