Jerry Berg
a2e33e79e9
Java fixes for 22.x ( #12035 )
...
* Fix mutability bug in Java proto lite: sub-messages inside of oneofs were not
being set as immutable. This would allow code to get a builder for a
sub-message and modify the original (supposedly immutable) copy.
PiperOrigin-RevId: 511598810
* Add casts to make protobuf compatible with Java 1.8 runtime.
Fix for: https://github.com/protocolbuffers/protobuf/issues/11393
PiperOrigin-RevId: 511807920
---------
Co-authored-by: Protobuf Team Bot <protobuf-github-bot@google.com>
2 years ago
Protobuf Team Bot
d40aadf823
Add casts to make protobuf compatible with Java 1.8 runtime.
...
Fix for: https://github.com/protocolbuffers/protobuf/issues/11393
PiperOrigin-RevId: 511807920
2 years ago
Deanna Garcia
e909bfc517
Add OSGi headers to pom files.
...
This addresses https://github.com/protocolbuffers/protobuf/issues/12017 .
PiperOrigin-RevId: 511587640
2 years ago
Sandy Zhang
2a55706f9d
Migrate away from examining the syntax of a proto file via reflection.
...
PiperOrigin-RevId: 511796130
2 years ago
Sandy Zhang
684a3dedf6
Migrate away from examining the syntax of a proto file via reflection.
...
PiperOrigin-RevId: 511792205
2 years ago
Protobuf Team Bot
fa82155c65
Fix mutability bug in Java proto lite: sub-messages inside of oneofs were not
...
being set as immutable. This would allow code to get a builder for a
sub-message and modify the original (supposedly immutable) copy.
PiperOrigin-RevId: 511598810
2 years ago
Protobuf Team Bot
dbd5ae8593
Allow AbstractProtoList to be created in an immutable state rather than using static blocks to call makeImmutable.
...
PiperOrigin-RevId: 511587750
2 years ago
Deanna Garcia
d3ceff3def
Add OSGi headers to pom files.
...
This addresses https://github.com/protocolbuffers/protobuf/issues/12017 .
PiperOrigin-RevId: 511587640
2 years ago
Sandy Zhang
b51858aa11
Document that hasField is only semantically meaningful when hasPresence == True.
...
Note that this is already documented in hasPresence as well.
PiperOrigin-RevId: 511316345
2 years ago
deannagarcia
9ee7b565c2
Fix pom_template dependencies. All pom files need a dependency section and kotlin + util need to depend on protobuf-java and kotlin-lite should depend on protobuf-javalite. ( #12009 )
...
This fixes https://github.com/protocolbuffers/protobuf/issues/11976
PiperOrigin-RevId: 511252224
2 years ago
Deanna Garcia
9b5a2c6f6f
Fix pom_template dependencies. All pom files need a dependency section and kotlin + util need to depend on protobuf-java and kotlin-lite should depend on protobuf-javalite.
...
This fixes https://github.com/protocolbuffers/protobuf/issues/11976
PiperOrigin-RevId: 511252224
2 years ago
Protobuf Team Bot
6d776dfed5
protobuf: fix a data race in AbstractProtobufList
...
Unconditional update of isMutable causes data races for
LazyStringArrayList::EMPTY_LIST that is used as the default value
for protobuf fields.
Not writing to it unconditionally may also improve performance
by reducing contention for the presumably widely shared EMPTY_LIST object.
PiperOrigin-RevId: 510366298
2 years ago
Mike Kruskal
649cc30872
Open-source some of our string_view tests.
...
This support was added in 22.x, but we don't have any tests locking it down.
Closes https://github.com/protocolbuffers/protobuf/issues/8096
PiperOrigin-RevId: 510242380
2 years ago
Protobuf Team Bot
a847a8dc4b
Updating version.json and repo version numbers to: 22.0
2 years ago
Protobuf Team Bot
c4ed948314
Fix lint warnings for protobuf GeneratedMessage.java
...
PiperOrigin-RevId: 509989425
2 years ago
Protobuf Team Bot
a594141cc4
Document known quirks of EnumDescriptor::is_closed() when importing across files with different syntaxes.
...
PiperOrigin-RevId: 509581394
2 years ago
Protobuf Team Bot
1de344fcd1
Document known quirks of EnumDescriptor::is_closed() when importing across files with different syntaxes.
...
PiperOrigin-RevId: 509581394
2 years ago
Protobuf Team Bot
4dd7a1e380
Updating version.json and repo version numbers to: 22.0-rc3
2 years ago
Protobuf Team Bot
1d744d40c8
Fix lint warnings for protobuf GeneratedMessage.java
...
PiperOrigin-RevId: 507937400
2 years ago
Sandy Zhang
d1b86601a2
Add isClosed() to EnumDescriptor in Java.
...
PiperOrigin-RevId: 507489971
2 years ago
Adam Cozzette
1325913afd
Add Java support for retention attribute
...
PiperOrigin-RevId: 506760540
2 years ago
Protobuf Team Bot
fa7a079c11
Updating version.json and repo version numbers to: 22.0-rc2
2 years ago
Protobuf Team Bot
da975a225c
Automated rollback of commit 63e127a89a
.
...
PiperOrigin-RevId: 506515268
2 years ago
Protobuf Team Bot
2b406251e4
Updating version.json and repo version numbers to: 22.0-rc1
2 years ago
Mike Kruskal
f60f478f45
Enable new JSON field name conflict handling.
...
This will apply uniformly in both proto2 and proto3, taking into account `json_name` options. See https://github.com/protocolbuffers/protobuf/pull/10750 for more details.
PiperOrigin-RevId: 502972769
2 years ago
Protobuf Team Bot
5669606613
Create a helper function that can make a mutable copy of any ProtobufList
...
instance to replace the specialized versions.
PiperOrigin-RevId: 500198486
2 years ago
Matt Fowles Kulukundis
1697e4558b
Main 202212161220 ( #11340 )
...
Closes #11340
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11340 from protocolbuffers:main-202212161220 c39ccb73fb
PiperOrigin-RevId: 496029356
2 years ago
Protobuf Team Bot
9238c4843a
Add debug_redact field option to protobuf.
...
PiperOrigin-RevId: 496016877
2 years ago
Protobuf Team Bot
2d12041ae0
Add TODO to remove EMPTY in a future breaking release.
...
PiperOrigin-RevId: 495619064
2 years ago
Protobuf Team Bot
b51c551e37
Remove unused package private class ProtobufLists.
...
PiperOrigin-RevId: 495424888
2 years ago
Protobuf Team Bot
9595cbbf9a
Mark UnmodifiableLazyStringList deprecated. UnmodifiableLazyStringList is unnecessary and will be removed in a future release.
...
PiperOrigin-RevId: 495357579
2 years ago
Protobuf Team Bot
c658e27529
Make emptyList public and mark the public EMPTY field as deprecated.
...
PiperOrigin-RevId: 495154966
2 years ago
Protobuf Team Bot
f0dc78d7e6
Updating version.json and repo version numbers to: 21.12
2 years ago
Mike Kruskal
032c9c8ada
Internal changes
...
PiperOrigin-RevId: 493986824
2 years ago
Protobuf Team Bot
99eb7fa891
Updating version.json and repo version numbers to: 21.11
2 years ago
Protobuf Team Bot
a474c5b9ff
Updating version.json and repo version numbers to: 21.11
2 years ago
Mike Kruskal
63e127a89a
Rollback of: Fix lint warnings for protobuf GeneratedMessage.java
...
PiperOrigin-RevId: 493192776
2 years ago
Protobuf Team Bot
6dbd4131fa
Enable Text format parser to skip unknown short-formed repeated fields.
...
The text format specs state that short formed repeated field should be valid. For example:
```
repeated_field: [{}, {}]
```
However, this was not supported when text format parser tries to skip **unknown fields**.
PiperOrigin-RevId: 493085702
2 years ago
Protobuf Team Bot
caf1ce3b35
ROLLBACK_OF: Stop serializing the Class<MessageType> within Google (for now)
...
PiperOrigin-RevId: 493011985
2 years ago
Protobuf Team Bot
d301a9de3e
Internal Changez
...
PiperOrigin-RevId: 492253438
2 years ago
Protobuf Team Bot
9b0a8d3096
Fix lint warnings for protobuf GeneratedMessage.java
...
PiperOrigin-RevId: 492075312
2 years ago
Protobuf Team Bot
aa24ccda47
Internal change
...
PiperOrigin-RevId: 492049282
2 years ago
Protobuf Team Bot
11bc195441
Updating version.json and repo version numbers to: 21.10
2 years ago
Protobuf Team Bot
ed63a2c7e4
Updating version.json and repo version numbers to: 21.10-rc0
2 years ago
Protobuf Team Bot
8bd49dea5e
Fix lint warnings for protobuf GeneratedMessage.java
...
PiperOrigin-RevId: 490392951
2 years ago
Jerry Berg
736e9b8f7c
Fix misplacement of TimingBelt in the nested_builders_test.proto
...
hierarchy.
2 years ago
Jerry Berg
8d38060c89
Add test to verify nested builder fix.
...
Verify fix for https://github.com/protocolbuffers/protobuf/issues/10624
2 years ago
Jerry Berg
f616e70a9a
Add timing belt to nested_builders_test protos
...
This will be used in verfication of https://github.com/protocolbuffers/protobuf/issues/10624
2 years ago
Jerry Berg
8e6afeff49
Mark nested builder as clean after clear is called
...
Omitting this step was leading to stale cached versions of nested messages.
See https://github.com/protocolbuffers/protobuf/issues/10624
2 years ago
Mike Kruskal
e19c2606b3
Internal changes
...
PiperOrigin-RevId: 487447243
2 years ago