Commit a8b8ea0
Breaking Change: fixed json_encode/json_decode to use the message's pool.
This bug arises only in the uncommon case where there is more than one DescriptorPool. In such a case, JSON encode/decode should always use the pool of the message being encoded/decoded, not the generated pool.
Closes #15281
COPYBARA_INTEGRATE_REVIEW=#15281 from protocolbuffers:ruby-json-pool-fix 91e2dc5
PiperOrigin-RevId: 5960277701 parent 55260d8 commit a8b8ea0
2 files changed
Lines changed: 45 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | 978 | | |
982 | 979 | | |
983 | 980 | | |
| |||
1011 | 1008 | | |
1012 | 1009 | | |
1013 | 1010 | | |
| 1011 | + | |
1014 | 1012 | | |
1015 | | - | |
| 1013 | + | |
1016 | 1014 | | |
1017 | 1015 | | |
1018 | 1016 | | |
| |||
1091 | 1089 | | |
1092 | 1090 | | |
1093 | 1091 | | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | 1092 | | |
1098 | 1093 | | |
1099 | 1094 | | |
| |||
1128 | 1123 | | |
1129 | 1124 | | |
1130 | 1125 | | |
1131 | | - | |
1132 | | - | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1133 | 1129 | | |
1134 | 1130 | | |
1135 | 1131 | | |
| |||
1139 | 1135 | | |
1140 | 1136 | | |
1141 | 1137 | | |
1142 | | - | |
| 1138 | + | |
1143 | 1139 | | |
1144 | 1140 | | |
1145 | 1141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
266 | 305 | | |
267 | 306 | | |
268 | 307 | | |
| |||
0 commit comments