File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,13 +264,15 @@ def test_extension
264264 end
265265
266266 def test_extension_json
267+ omit "Java Protobuf JsonFormat does not handle Proto2 extensions" if defined? JRUBY_VERSION and :NATIVE == Google ::Protobuf ::IMPLEMENTATION
267268 message = TestExtensions . decode_json '{"[basic_test_proto2.optional_int32_extension]": 123}'
268269 extension = Google ::Protobuf ::DescriptorPool . generated_pool . lookup 'basic_test_proto2.optional_int32_extension'
269270 assert_instance_of Google ::Protobuf ::FieldDescriptor , extension
270271 assert_equal 123 , extension . get ( message )
271272 end
272273
273274 def test_extension_json_separate_pool
275+ omit "Java Protobuf JsonFormat does not handle Proto2 extensions" if defined? JRUBY_VERSION and :NATIVE == Google ::Protobuf ::IMPLEMENTATION
274276 pool = Google ::Protobuf ::DescriptorPool . new
275277
276278 # This serialized descriptor is a subset of basic_test_proto2.proto:
You can’t perform that action at this time.
0 commit comments