[JAVA-1772] Make it easier to change JsonWriter behaviour Created: 20/Apr/15 Updated: 03/Jun/22 Resolved: 11/Jan/17 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | JSON |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | 3.5.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Francisco Alejandro Lozano López | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Description |
|
I'm trying to override JsonWriter's doWriteInt64 so that it writes values with just Long.toString() representation. In the code, there's:
but, if I've understood correctly the code, the "default" never gets called, because outputMode will always be either STRICT or SHELL. I've tried to override and write my own version (just copy the "default:" code), but writeNameHelper is private and I can't access it. Can you make it at least protected? |
| Comments |
| Comment by Githook User [ 02/Feb/17 ] |
|
Author: {u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}Message: Javadoc: Corrected @since values
|
| Comment by Githook User [ 11/Jan/17 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |
| Comment by Jeffrey Yemin [ 20/Apr/15 ] |
|
We'll definitely look into it. At first glance, I'd prefer instead to extract a protected doWriteInt64Strict method. |