Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2036

Thrift gem warns about class variable access from top level

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9.1
    • Component/s: Ruby - Library
    • Labels:
    • Environment:

      Mac OS X and Linux on x86_64 with ruby 2.0.0-p195

      Description

      Steps:
      1. Generate thrift client and server from thrift definition file.
      2. Require thrift client or server in a ruby script.

      The following warning is printed:
      2.0.0-p195/lib/ruby/gems/2.0.0/gems/thrift-0.9.0/lib/thrift/protocol/json_protocol.rb:21: warning: class variable access from toplevel

      Here is a patch from the Evernote SDK: https://github.com/evernote/evernote-sdk-ruby/pull/12

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jimjh Jim Lim
            • Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: