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

        Gerhard Stuhlpfarrer created issue -
        Jochen Theodorou made changes -
        Field Original Value New Value
        Assignee blackdrag blackdrag [ blackdrag ]
        Resolution Not A Bug [ 6 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12734237 ] Default workflow, editable Closed status [ 12741247 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12967868 ] Default workflow, editable Closed status [ 12975617 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development