Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3180

[RUBY] Interop tests fail on force_encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • None
    • None

    Description

      Freezing string literals in Ruby is a good practice (AVRO-3112). There are a couple of places that attempt to modify string literals, notably in the IRC interop tests:

      /home/rskraba/avro/lang/ruby/lib/avro/ipc.rb:107:in `force_encoding': can't modify frozen String (FrozenError)
      	from /home/rskraba/avro/lang/ruby/lib/avro/ipc.rb:107:in `request'
      	from lang/ruby/test/tool.rb:69:in `send_message'
      	from lang/ruby/test/tool.rb:137:in `main'
      	from lang/ruby/test/tool.rb:143:in `<main>'
      

      Attachments

        Issue Links

          Activity

            People

              tjwp Tim Perkins
              rskraba Ryan Skraba
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: