Paul Yang
f23869c615
Bug fix: When encoding, negative int32 values should be padded to int64 ( #2660 )
...
in order to be wire compatible.
8 years ago
Josh Haberman
014a5507fb
Ruby: build packages for Ruby 2.4.
8 years ago
Adam Cozzette
c57c77b4b7
Merge pull request #2829 from afrantzis/hide-unnecessary-library-symbols
...
Hide unnecessary exported library symbols
8 years ago
Josh Haberman
324a299a55
Made formatting more consistent.
8 years ago
Adam Cozzette
ed0ef54045
Merge pull request #2846 from acozzette/bytestream-comment
...
Updated an outdated comment in bytestream.h
8 years ago
Thomas Van Lenten
d18df81488
Merge pull request #2855 from thomasvl/copy_note
...
Document deep copy in the header
8 years ago
Thomas Van Lenten
5e4f14fae4
Document deep copy in the header
8 years ago
Markus Heß
b4b855cde4
fix attributes warning
8 years ago
Feng Xiao
416f90939d
Fix freebsd build.
...
It turns out system headers included by generated plugin.pb.h file already contains
major/minor macro definitions when built on FreeBSD and we need to add #undefs to
the generated header file.
This change also fixes another compile error regarding EXPECT_DEATH on FreeBSD.
8 years ago
Josh Haberman
9c6b8cb9bf
Ruby: fixed Message#to_h for map fields.
8 years ago
Josh Haberman
95b4427d39
Build system fixes for JS conformance tests.
8 years ago
Joshua Haberman
43f2db776c
Merge pull request #2843 from haberman/check
...
Replace CHECK() with GOOGLE_CHECK().
8 years ago
Adam Cozzette
746ca59885
Updated an outdated comment in bytestream.h
8 years ago
Josh Haberman
874e382fde
Replace CHECK() with GOOGLE_CHECK().
...
Fixes: https://github.com/google/protobuf/issues/1175
8 years ago
Josh Haberman
8df69f0894
Conformance test for JS now work, though 15 tests fail.
8 years ago
Feng Xiao
f0a5c1033a
Merge pull request #2836 from xfxyjwf/i894
...
Double-quote file paths in extract_includes.bat.in
8 years ago
Jisi Liu
ddfc86b1f7
Merge pull request #2835 from pherl/javaep
...
Suppress the last unchecked warning.
8 years ago
Alexandros Frantzis
13d165de9e
Hide unnecessary exported library symbols
8 years ago
Jie Luo
d59592af61
DefaultValueObjectWriter should populate oneof message field
8 years ago
Feng Xiao
c94555f955
Double-quote file paths in extract_includes.bat.in
...
This allows the file path to contain spaces which is very common on
windows.
8 years ago
Jisi Liu
f4f31e73f2
Suppress the last unchecked warning.
...
Likely to be java language issue. Varargs are considered arrays, thus
using generic with varargs will cause unchecked warning about generic
array creation.
8 years ago
Jie Luo
a69bc9de75
Merge pull request #2822 from anandolee/master
...
Detect generated code of WKT, addressbook and conformance protos
8 years ago
Jisi Liu
f54fb9d729
Merge pull request #2832 from pherl/javaep
...
Fix java code according to error prone.
8 years ago
Feng Xiao
e11cd3ee6e
Merge pull request #2818 from xfxyjwf/i1470
...
Don't expose gson exceptions in JsonFormat.
8 years ago
Feng Xiao
92064a40ce
Merge pull request #2824 from xfxyjwf/i1415
...
Use per-type table to lookup JSON name.
8 years ago
Feng Xiao
cd6eb91684
Merge pull request #2826 from xfxyjwf/i1374
...
Add missing thread dependency in cmake.
8 years ago
Feng Xiao
81f4fe5aab
Merge pull request #2827 from xfxyjwf/i1251
...
Update comments for setSizeLimit.
8 years ago
Jisi Liu
81fe52fbd4
Fix java code according to error prone.
8 years ago
Paul Yang
616e68ecc1
Repeated/Map field setter should accept a regular PHP array ( #2817 )
...
Accept regular PHP array for repeated/map setter. Existing map/repeated
field will be swapped by a clean map/repeated field. Then, elements in
the array will be added to the map/repeated field. All elements will be
type checked before adding.
See #2686 for detail.
8 years ago
Jie Luo
ae220cda61
Add auto detect for generated code of WKT protos, addressbook.proto and conformance.proto
8 years ago
Feng Xiao
03c8c8be6d
Update comments for setSizeLimit.
8 years ago
Jisi Liu
a1bb147e96
Merge pull request #2825 from pherl/javawarning
...
Cherry-pick changes from javalite branch to also fix Java warnings in the master branch
8 years ago
Feng Xiao
1ece7c09af
Add missing thread dependency in cmake.
8 years ago
Jisi Liu
009e491bd7
Fix GeneratedMessageV3 warnings.
8 years ago
Feng Xiao
da003550e8
Merge pull request #2809 from xfxyjwf/i2464
...
Make JsonFormat locale independent.
8 years ago
Feng Xiao
61e87f3d41
Use per-type table to lookup JSON name.
...
Different fields from different messages can map to the same JSON name
and the original global lookup table is only capable of mapping one of
such fields. This change converts the global table to per-type tables
so fields from different messages won't conflict.
8 years ago
Jisi Liu
7c7534413a
Fix lint warnings in the javalite branch.
8 years ago
Joshua Haberman
cad6a51a30
Merge pull request #2819 from haberman/pythonexcept
...
update_failure_list.py: fixed Python "raise" statement.
8 years ago
Josh Haberman
3e6245e5d7
update_failure_list.py: fixed Python "raise" statement.
8 years ago
Feng Xiao
075475f834
Don't expose gson exceptions in JsonFormat.
8 years ago
Adam Cozzette
bbfb9d52da
Merge pull request #2804 from acozzette/ruby-memcpy
...
Ruby: wrap calls to memcpy so that gem is compatible with pre-2.14 glibc
8 years ago
Feng Xiao
8e465dcf46
Merge pull request #2810 from xfxyjwf/i1994
...
Avoid redundant type casts for oneof bytes fields.
8 years ago
Feng Xiao
af2d5f5ad3
Merge pull request #2775 from xfxyjwf/fixmajor
...
Undef major/minor if they are defined as macro.
8 years ago
Jisi Liu
9afacb44a3
Merge pull request #2814 from pherl/javadeprecate
...
Add annotations for deprecated messages in Java
8 years ago
Jisi Liu
baceff7c9c
Add annotations for deprecated messages in Java
8 years ago
Ewout
008dc92c9d
Ruby version optionally emits default values in JSON encoding.
...
Usage: Message.encode_json(m, emit_defaults: true)
Message fields that are nil will still not appear in the encoded JSON.
8 years ago
Adam Cozzette
9fa40314fc
Ruby: wrap calls to memcpy so that gem is compatible with pre-2.14 glibc
...
This commit adds a __wrap_memcpy function and a linker flag to use that
in place of memcpy for our Ruby gem C extension. This allows us to
always use the 2.2.5 version of memcpy, making it possible to use the
gem on distributions with pre-2.14 versions of glibc.
Before this change:
$ objdump -T protobuf_c.so | grep memcpy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.4 __memcpy_chk
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.14 memcpy
After:
$ objdump -T protobuf_c.so | grep memcpy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.2.5 memcpy
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.4 __memcpy_chk
0000000000042450 g DF .text 0000000000000005 Base __wrap_memcpy
This is based on gRPC's solution to a similar problem:
5098508d2d/src/core/lib/support/wrap_memcpy.c
This fixes issue #2783 .
8 years ago
Feng Xiao
c31154316b
Avoid redundant type casts for oneof bytes fields.
8 years ago
Feng Xiao
4ae8656b6d
Make JsonFormat locale independent.
8 years ago
Feng Xiao
fa1788026c
Merge pull request #2602 from GreatFruitOmsk/issue-2428
...
Method Builder#clone() has been changed to bypass Java 1.6 compiler issue.
8 years ago