Commons Logging
  1. Commons Logging
  2. LOGGING-64

Wrong sample code in org/apache/commons/logging/package.html (using static and this.class)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.0.4
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      In the org/apache/commons/logging/package.html file, there is sample code:

      public class Foo

      { static Log log = LogFactory.getLog(this.class); ... }

      This code cannot be compiled because of using "static" and "this.class" in the
      same statement. Should be change to Foo.class.

        Activity

        Thai Ha created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 18889 12340651
        Henri Yandell made changes -
        Affects Version/s Nightly Builds [ 12311648 ]
        Component/s Logging [ 12311124 ]
        Project Commons [ 12310458 ] Commons Logging [ 12310484 ]
        Key COM-500 LOGGING-64
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Henri Yandell made changes -
        Affects Version/s Nightly Builds [ 12311790 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dennis Lundberg made changes -
        Fix Version/s 1.0.4 [ 12311713 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Thai Ha
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development