Jan Tattermusch
e2f5da65ee
C#: add System.Memory dependency for net45 too ( #6317 )
...
* introduce GOOGLE_PROTOBUF_SUPPORT_SYSTEM_MEMORY
* allow building net45 target on unix systems too
* add Span<> support on net45 as well
2019-09-03 10:17:21 -07:00
Jan Tattermusch
94cbf009e9
Merge pull request #6499 from ObsidianMinor/csharp/proto2-feature/docs
...
Document proto2 feature implementations in Google.Protobuf
2019-09-03 12:15:52 +02:00
Jan Tattermusch
37bf540fd0
Merge pull request #5936 from ObsidianMinor/csharp/proto2-feature/finale
...
C# Proto2 feature : Finale
2019-09-03 12:15:39 +02:00
Sydney Acksman
c920715cf5
Remove wording indicating proto2 support is reimplemented
2019-09-03 04:24:46 -05:00
Sydney Acksman
c9a9818075
Update proto2.md
...
Reworded info about message initialization
2019-09-02 18:05:33 -05:00
Sydney Acksman
7feb16a377
Update proto2.md
...
Addressed review comments
2019-09-02 18:00:15 -05:00
Rafi Kamal
bc1773c42c
Merge pull request #6568 from ennerf/add-jigsaw-module-name
...
Java: Add Automatic-Module-Name entries to the Manifest
2019-08-30 13:56:17 -07:00
salamaniibm
7ba4a99e00
adding protoc support for s390x
2019-08-30 11:44:43 -07:00
Adam Cozzette
36bdcb5a7a
Updated issue templates to remove question form ( #6576 )
...
This commit removes the question template. It also updates the bug report and feature request templates to direct questions to the mailing list.
2019-08-30 10:58:11 -07:00
Paul Yang
e9d4e4acbc
Fix the issue for parsing zero length message ( #6592 )
...
* When length is zero, substr returns null instead of emptry string, which breaks the invariable for message.
* Tested in https://github.com/protocolbuffers/protobuf/pull/6560
2019-08-30 10:47:25 -07:00
Rafi Kamal
14b55eb128
Merge pull request #6597 from elharo/patch-3
...
Update version number
2019-08-30 10:36:37 -07:00
Thomas Van Lenten
030a38b954
Fix typo that snuck in with last commit.
2019-08-30 11:43:08 -04:00
Thomas Van Lenten
6ec27f0d08
Add an explicit test using secure coding for added safety.
2019-08-30 09:46:30 -04:00
Elliotte Rusty Harold
22f054ac00
Update version number
2019-08-30 09:42:28 -04:00
Sydney Acksman
4d5ae5b4a4
Use proto2 and proto3 in unknown field tests
2019-08-29 18:07:02 -05:00
Wang Qilin
829bb1d791
fix no check for null pointer in encode_decode.c ( #6578 )
2019-08-29 15:35:14 -07:00
Paul Yang
342ae0ebc3
Fix issues for php map when parsing missing key/value ( #6588 )
...
* For missing message value, map should create a default message
instance in order to keep its invariable.
* On 32-bit platform, int64 map key should be string
2019-08-29 15:27:48 -07:00
Keith Smiley
516f8b1560
bazel: Change zlib URL to GitHub
...
We've notice significant issues downloading from zlib.net. Since there
are already other archives coming from GitHub, this shouldn't negatively
affect reliability.
2019-08-29 11:11:19 -07:00
Joshua Haberman
d2d49bf56a
Merge pull request #6547 from haberman/layout_clear
...
Optimization for layout_init()
2019-08-28 15:08:30 -07:00
Joshua Haberman
671c2459fc
Fixed crash bug and moved initialization into init method.
2019-08-28 13:15:07 -07:00
Jie Luo
84241c6154
Add missing files under benchmarks/ to the dist ( #6580 )
...
* Add missing files under benchmarks/ to the dist
* fix typo
2019-08-27 13:16:28 -07:00
Paul Yang
659e799fb8
Sync upb ( #6577 )
...
* Sync upb
* https://github.com/protocolbuffers/upb/pull/208
* Fix php c extension compiling
Don't use macros defined by upb
* Update ruby conformance failure list
2019-08-27 13:14:57 -07:00
Thomas Van Lenten
b273cba192
Fix enum writing.
...
Enums use varint, so if the value is negative it should end up being longer.
This was caught my new conformance test cases.
2019-08-26 17:17:32 -04:00
Florian Enner
405b618a2c
added manifest entries to set jigsaw module names
2019-08-26 16:10:45 +02:00
Sydney Acksman
bdc6cd1d0b
Expose Extension field in FieldDescriptor
2019-08-23 17:29:59 -05:00
Sydney Acksman
6da14fa94d
Add GeneratedMessageTest.Proto2.cs to EXTRA_DIST
2019-08-23 17:29:59 -05:00
Sydney Acksman
0436b8db85
GetOrRegisterExtension -> GetOrInitializeExtension
...
Add comment explaining IExtensionMessage instability
2019-08-23 17:29:59 -05:00
Sydney Acksman
c5fa0e08c7
Fix comment on IExtendableMessage.GetOrRegisterExtension
2019-08-23 17:29:59 -05:00
Sydney Acksman
79cf8a8bae
Fix readability in FieldCodec.ForMessage/Group factories
2019-08-23 17:29:59 -05:00
Sydney Acksman
3237ad39f8
Rename ExtensionRegistry.Add(IEnumerable<Extension>) overload to AddRange
2019-08-23 17:29:58 -05:00
Sydney Acksman
930db675ca
Revert changes for FieldPresenceAccessor
2019-08-23 17:29:58 -05:00
Sydney Acksman
29141f482c
Fix default extension values being unused in FieldCodec
2019-08-23 17:29:58 -05:00
Sydney Acksman
47f2017cf3
Review changes
...
* Add Syntax enum and make file syntax checks check the enum
* Made IsPacked a normal get method without ternary op
* Moved IFieldAccessor.HasValue to IFieldPresenceAccessor
* Change naming of GetIsExtensionsInitialized
* Fixed stray text in summary text
2019-08-23 17:29:58 -05:00
Sydney Acksman
29d5186867
Regenerate testprotos.pb
2019-08-23 17:29:58 -05:00
Sydney Acksman
2b9d0fdfba
Add missing files to Makefile.am
2019-08-23 17:16:37 -05:00
Sydney Acksman
6b90ac13e0
Reorganize some tests
2019-08-23 17:16:37 -05:00
Sydney Acksman
bf4f6c5431
Make extension reflection helper use GetOrRegisterExtension
2019-08-23 17:16:37 -05:00
Sydney Acksman
9163a6f1ad
Add tests for extension accessor
2019-08-23 17:16:37 -05:00
Sydney Acksman
0c80570a8b
Add ExtensionSet tests and add checks that non-message extension fields don't fail initialization checks
2019-08-23 17:16:37 -05:00
Sydney Acksman
f4cfd2def3
Remove dead HasValue code for ExtensionValue and add null-checks to ExtensionSet.Set
2019-08-23 17:16:37 -05:00
Sydney Acksman
8dc69ede45
Remove unnecessary check in GetIsExtensionsInitialized
2019-08-23 17:16:37 -05:00
Sydney Acksman
b78330b21d
Fix RepeatedExtensionValue.IsInitialized
2019-08-23 17:16:37 -05:00
Sydney Acksman
ebf0bfaed8
Add private "_Extensions" property to speed up IsInitialized checks
2019-08-23 17:16:37 -05:00
Sydney Acksman
134242bc46
Change input message to UnknownFieldSet tests to proto2 test message to test groups.
2019-08-23 17:16:37 -05:00
Sydney Acksman
cd65535423
Added group roundtrip tests and fixed any issues discovered
2019-08-23 17:16:37 -05:00
Sydney Acksman
011427c9d8
Fix issues from interactive rebase and regenerate code
2019-08-23 17:16:37 -05:00
Sydney Acksman
5b2f2c5292
file descriptors and the syntax field are really weird with proto2
2019-08-23 17:16:37 -05:00
Sydney Acksman
8e917d1688
Added FieldDescriptor.IsExtension and sealed ExtensionCollection
2019-08-23 17:16:37 -05:00
Sydney Acksman
8b7fb7d0f4
Add tests for field presence and default values
...
Adjust APIs for extensions to properly return default values for extensions
Fix issues with IsInitialized and proto2 field reflection
2019-08-23 17:16:36 -05:00
Sydney Acksman
a976158b1c
Fix incorrect code gen for string fields with default values
2019-08-23 17:16:36 -05:00