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

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development