aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/tests
diff options
context:
space:
mode:
authorGravatar Josh Haberman <jhaberman@gmail.com>2016-07-25 01:26:14 -0700
committerGravatar Josh Haberman <jhaberman@gmail.com>2016-07-25 01:26:14 -0700
commitd07a9963df7c01d978c0749eb5753f98a3f0dc65 (patch)
tree988466b2010ee121799582f77fd54e6d1ac3c767 /ruby/tests
parentff7f68ae9fcf4f4e3bdef3c8c372c7ae91b7720b (diff)
Ruby: fixed string freezing for JRuby.
Diffstat (limited to 'ruby/tests')
-rw-r--r--ruby/tests/basic.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/ruby/tests/basic.rb b/ruby/tests/basic.rb
index c7d8cdd1..f81e456c 100644
--- a/ruby/tests/basic.rb
+++ b/ruby/tests/basic.rb
@@ -861,8 +861,10 @@ module BasicTest
m2 = TestMessage.decode_json(json)
assert_equal 'foo', m2.optional_string
assert_equal ['bar1', 'bar2'], m2.repeated_string
- assert m2.optional_string.frozen?
- assert m2.repeated_string[0].frozen?
+ if RUBY_PLATFORM != "java"
+ assert m2.optional_string.frozen?
+ assert m2.repeated_string[0].frozen?
+ end
proto = m.to_proto
m2 = TestMessage.decode(proto)