Commit Graph

3197 Commits

Author SHA1 Message Date
Josh Haberman
af4aa9bd64 Added support for binary gems. 2016-02-04 10:44:22 -08:00
Jon Skeet
bd8a476510 Merge pull request #1213 from jskeet/rename-preconditions
Rename Preconditions to ProtoPreconditions
2016-02-04 16:11:00 +00:00
Jon Skeet
045b528d4a Generated code changes from previous commit 2016-02-04 15:02:59 +00:00
Jon Skeet
7762f163a4 Rename Preconditions to ProtoPreconditions
(Generated code changes in next commit.)
2016-02-04 14:50:43 +00:00
Jan Tattermusch
c78222a366 Merge pull request #1210 from jskeet/rename-generatedcodeinfo
Rename GeneratedCodeInfo to GeneratedClrTypeInfo
2016-02-04 06:43:13 -08:00
Jon Skeet
b6159965ec Generated code for GeneratedCodeInfo change 2016-02-04 07:08:55 +00:00
Jon Skeet
a3ea9d1203 Rename GeneratedCodeInfo to GeneratedClrTypeInfo
Recently, descriptor.proto gained a GeneratedCodeInfo message, which means the generated code conflicts with our type.
Unfortunately this affects codegen as well, although this is a part of the public API which is very unlikely to affect hand-written code.

Generated code changes in next commit.
2016-02-04 07:05:49 +00:00
Dongjoon Hyun
7a9040fe7f Remove redundant the in comments. 2016-02-03 15:27:27 -08:00
Jie Luo
eb1d156d74 Merge pull request #1207 from jskeet/readme
Clarify readme for C#
2016-02-03 11:11:07 -08:00
Jon Skeet
0809de8e9f Clarify readme 2016-02-03 09:45:48 +00:00
Josh Haberman
5394fdb641 Enable JavaScript tests for binary parse/serialize.
These should have been included in the first match
but I overlooked them.

This involved deleting some of the code that tests
Google-internal-only features.
2016-02-02 15:54:59 -08:00
Jisi Liu
287a095c87 Merge pull request #1165 from damienmg/master
Make protobuf Skylark extension appends the workspace root
2016-02-02 10:38:45 -08:00
Jie Luo
7727e2603c Merge pull request #1195 from calbach/python-json-struct
Manually down-integrate python JSON struct support from internal code base.
2016-02-01 10:08:48 -08:00
Jisi Liu
110e31cbbc Merge pull request #1199 from google/google_integrate
Integrate google internal changes to master
2016-02-01 10:00:40 -08:00
CH Albach
5477f8cdba Manually down-integrate python JSON struct support from internal code base. 2016-01-29 18:10:50 -08:00
Jisi Liu
defa25b38b Restore the license for Internal.java 2016-01-29 14:04:15 -08:00
Jisi Liu
1b8bab3a78 Uncomment the test, which was commented out during integration 2016-01-29 14:01:01 -08:00
Jisi Liu
5221dcbe47 Integrate from google internal.
Java files are moved to un-do the hack in the prevous commit, which
moved the java files to the original position for integration.
2016-01-29 13:51:05 -08:00
Jisi Liu
cb3f428810 Undo the Java module change for integration.
Moving the files to their original location, so that opensource changes
can be picked during the internal merge. Those files will be moved into
the correct location after merging with internal code.

Note: do NOT merge this into master without the other internal
down-integration commit.
2016-01-28 13:59:14 -08:00
Swen Kooij
37d6cf9cfe Fixed unused parameters and extra ';' 2016-01-28 11:40:07 +02:00
kkm
714b6b761b Fix Intel compiler warnings in include files on Windows 2016-01-27 14:23:36 -08:00
Jan Tattermusch
b13874d59e Merge pull request #1158 from jskeet/nonnormalized-tostring
Ensure that FieldMask, Timestamp and Duration ToString() calls don't throw
2016-01-26 08:43:45 -08:00
Parth Kolekar
21e1f1d2e9 Updated python examples to use with. 2016-01-26 04:13:31 +05:30
Sylvain Baubeau
e5ec85e7a5 Fix typos in README.md 2016-01-25 21:41:31 +01:00
Feng Xiao
60f7fc51fb Merge pull request #1169 from LuminateWireless/bazel-build
Fix bazel BUILD for Java.
2016-01-22 11:29:34 -08:00
Jisi Liu
c65be83200 Merge pull request #1167 from xfxyjwf/refactor_doc
Refactor README.md.
2016-01-22 09:52:44 -08:00
Ming Zhao
4fe03816b1 Fix bazel BUILD for Java. 2016-01-21 23:08:33 -08:00
Feng Xiao
d0e0114f31 Refactor README.md.
Move the original README.md to src since it's talking about C++
exclusively and add a more general README.md to document how
to install protoc for all languages.
2016-01-21 17:30:45 -08:00
Jan Tattermusch
187977649b Merge pull request #1163 from jskeet/more-json
Fix mistakes in highest-representable float64 integers
2016-01-21 15:49:08 -08:00
Feng Xiao
f2b6dbb8b3 Merge pull request #1162 from brian-peloton/master
Avoid upcasting uninitialized pointers
2016-01-21 11:19:40 -08:00
Jon Skeet
3878d84662 Fix mistakes in highest-representable float64 integers 2016-01-21 10:49:57 +00:00
Brian Silverman
96c2dd5dfc Avoid upcasting uninitialized pointers
Fixes google/protobuf#693

msan flags this as being undefined behavior. I think it's triggering
because the compiler has to insert a branch to avoid changing the
pointer's value if it starts out NULL. I can't figure out if this is
actually undefined behavior or not, but it definitely seems to be a gray
area of the standard which is best avoided.
2016-01-20 23:05:25 -05:00
Feng Xiao
fe066bd514 Merge pull request #789 from motahan/solaris64_fix
Fixing compile errors on Solaris in 64-bit mode
2016-01-20 16:57:01 -08:00
Jon Skeet
dd43dcca8c Ensure that FieldMask, Timestamp and Duration ToString() calls don't throw
The usage of ICustomDiagnosticMessage here is non-essential - ToDiagnosticString
doesn't actually get called by ToString() in this case, due to JsonFormatter code. It was
intended to make it clearer that it *did* have a custom format... but then arguably I should
do the same for Value, Struct, Any etc.

Moving some of the code out of JsonFormatter and into Duration/Timestamp/FieldMask likewise
feels somewhat nice, somewhat nasty... basically there are JSON-specific bits of formatting, but
also domain-specific bits of computation. <sigh>

Thoughts welcome.
2016-01-20 18:43:00 +00:00
Jan Tattermusch
8c5260b21b Merge pull request #1096 from jskeet/custom-to-string
Introduce ICustomDiagnosticMessage to allow for custom string formatting
2016-01-19 19:38:16 -08:00
Feng Xiao
6794d17c94 Merge pull request #1155 from jcburke14/jb-intcast
Fix compiler warning from repeated_field.h
2016-01-19 16:57:10 -08:00
John Burke
3937dedbff Fix compiler warning from repeated_field.h 2016-01-19 15:13:25 -08:00
Feng Xiao
91427fe075 Merge pull request #1147 from jcanizales/patch-1
Update podspec version to 3.0.0-beta-2
2016-01-19 11:28:15 -08:00
Feng Xiao
bbe6e430f6 Merge pull request #896 from jhump/jh/fix-ioexception-vs-invalidprotobuf-exception
throw IOException instead of InvalidProtocolBufferException when appropriate
2016-01-16 20:54:31 -08:00
Jon Skeet
d522479aa0 Merge pull request #1145 from jskeet/conformance
JSON Conformance improvements
2016-01-16 18:28:13 +00:00
Joshua Haberman
1e113df20a Merge pull request #1146 from haberman/pycppfix
Fixed Python 3.x C++ build, and updated conformance failure lists.
2016-01-15 23:52:33 -08:00
Jorge Canizales
b40e125f0b Update podspec version to 3.0.0-beta-2
It's already submitted.
2016-01-15 20:21:46 -08:00
Joshua Humphries
248557e73a move test file (was in wrong place after rebasing on java module refactor) 2016-01-15 21:51:20 -05:00
Joshua Humphries
60654349e7 fully qualify invocations of static methods on GeneratedMessage 2016-01-15 21:51:19 -05:00
Joshua Humphries
f3c75580e4 throw IOException instead of InvalidProtocolBufferException when appropriate 2016-01-15 21:51:19 -05:00
Josh Haberman
06fd6fa850 Fixed Python 3.x C++ build, and updated conformance failure lists. 2016-01-15 17:26:44 -08:00
Damien Martin-Guillerez
76547e5190 Make protobuf Skylark extension appends the workspace root
This change make protobuf skylark extension works when using
remote repository.

Note that this make the Skylark extension unusable prior
to Bazel 0.1.4 because the workspace_root is not available
on prior version.

Tested with Bazel 0.1.4rc2.

Fixes https://github.com/bazelbuild/bazel/issues/784.
2016-01-15 23:12:09 +01:00
Feng Xiao
9a5d892e2a Merge pull request #1143 from xfxyjwf/fix_java
Fix tests broken by the Java directory change.
2016-01-15 10:43:51 -08:00
Jon Skeet
030c268489 Fix broken test 2016-01-15 17:34:10 +00:00
Jon Skeet
5ee055d53d Remove now-fixed conformance errors. 2016-01-15 14:43:17 +00:00