Groovy
  1. Groovy
  2. GROOVY-5314

Using log variable created with @Log or @Log4j causes compiler error if used in static method

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.8.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      windows, Groovy-1.8.4 (from latest eclipse plugin)

      Description

      The issue described in GROOVY-4609 seems to be NOT fixed.
      Logging in static methods gives this error:
      Apparent variable 'log' was found in a static scope but doesn't refer to a local variable, static field or class.

        Activity

          People

          • Assignee:
            Jochen Theodorou
            Reporter:
            Gerhard Stuhlpfarrer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development