Commit Graph

2043 Commits

Author SHA1 Message Date
Inderjeet Singh cc90a68241 Fixed issue 68 by providing support to override default type adapters for
primitive types. Added a visitFieldUsingCustomHandler method to handle this in
the visitors.
2008-10-31 00:19:58 +00:00
Inderjeet Singh 70c7728218 Wrote a test that invokes a custom deserializer for a wrapper primitive type. 2008-10-30 18:26:16 +00:00
Inderjeet Singh 3f53e8b223 Added tests for Issue 68 2008-10-30 01:45:44 +00:00
Inderjeet Singh c98d7bc340 Fixed issue 66 to allow escaped slash ( \/) as a valid Json escaped character.
Changed Gson version to 1.2.3.
2008-10-29 23:31:13 +00:00
Inderjeet Singh 7aa1d0f6aa Reusing the JsonNull instance everywhere instead of recreating it.
This is a minor optimization, which is possible because JsonNull is a stateless object.
2008-10-24 20:35:22 +00:00
Inderjeet Singh 3cd665b199 Added support for serialization of raw maps.
Also, refactored tests for maps in MapTest class.
2008-10-21 22:37:41 +00:00
Inderjeet Singh 9dfa454f6d Fixed issue 63 where Gson could not operate in a thread-safe manner. Resolved the issue by recreating ObjectNavigatorFactory for each call instead of reusing the same object everywhere. This is needed since ObjectNavigatorFactory had MemoryRefStack that was incorrectly being shared across calls. 2008-10-20 20:09:42 +00:00
Inderjeet Singh 95861175a8 deleted unused variable. 2008-10-20 19:51:38 +00:00
Inderjeet Singh 0acb151941 A test to reproduce Gson concurrency bug. See issue 63. 2008-10-20 19:48:38 +00:00
Inderjeet Singh 9f5a2086de updated Gson version to 1.2.2
Added a test to ensure that CustomTypeAdapters are not applied automatically
for SubClasses.
2008-10-14 19:37:33 +00:00
Inderjeet Singh 745c8e2a83 Fixed issue 58 by disabling the use of field value actual type for all cases
except when it is marked as Object.
2008-10-14 18:55:59 +00:00
Inderjeet Singh 646d94d420 test for issue 58 2008-10-14 18:54:34 +00:00
Inderjeet Singh 90a8d6cf76 updated javadocs for 1.2.1 2008-10-13 22:36:54 +00:00
Inderjeet Singh 9726b4e172 updated Gson version number to 1.2.1
Removed unused productions from Gson grammar. Also removed unused imports.
2008-10-13 22:09:15 +00:00
Inderjeet Singh 5631132892 Fixed Issue 54 to enable serialization of fields that are declared of type
Object.
2008-10-13 21:12:41 +00:00
Inderjeet Singh f6a278018e test for Issue 51 for inner classes serialization and deserialization. 2008-10-13 19:49:05 +00:00
Inderjeet Singh add960644a disabled tests for issue 43 and 44 since those are deferred for a subsequent release. 2008-10-13 19:14:57 +00:00
Inderjeet Singh 2b9fd47b72 Fixed issue 53 where default date instances were not getting
serialized/deserialized properly. Added support for time style as well by using he default formatter that uses time style.
2008-10-13 18:40:20 +00:00
Inderjeet Singh 4d73459b7e moved performance tests under the metrics package and replaced the invalid JSON
string with \n with a valid one.
2008-10-10 23:22:27 +00:00
Inderjeet Singh cdd5163458 fix for bug 56 where Gson wasn't serialization null fields of type string,
collection and arrays properly even when serializeNulls was set.
2008-10-10 22:33:46 +00:00
Inderjeet Singh d61e754fb6 Added tests for explicit serialization of null array, collection and string
fields with serializeNulls set to true.
2008-10-10 22:31:19 +00:00
Inderjeet Singh d74ecbfe82 Updated JsonParser to use Token to match strings instead of productions. This
enables Gson to handle much larger strings (~10s of MB) than previously
possible (<100kb). This also reduces memory and stack requirements, and
increases Gson performance as well.
2008-10-10 21:52:02 +00:00
Inderjeet Singh 1abf693b70 Fix for Issue 55 where GSON was unable to deserialize JSON with single quotes
(') used for field name/values. Gson now supports different fields with-in the
JSON to use either single quote or double quote. However, a single field name
or value must use ' or "" to delimit itself.
2008-10-10 02:53:54 +00:00
Inderjeet Singh 427c17a732 added a test for checking if GSON can parse JSON that uses single quotes
instead of double quotes for various field values.
2008-10-10 02:32:50 +00:00
Inderjeet Singh 3b8404dac5 refactored String related functional tests out in a separate test class. 2008-10-10 02:29:06 +00:00
Inderjeet Singh 0b9c739a7b added additional tests for the default deserialization of dates. 2008-10-06 22:00:04 +00:00
Joel Leitch 1cad54f7b1 Fix pretty printing of interlacing arrays and objects. 2008-09-27 19:01:45 +00:00
Inderjeet Singh 9ad4b2bc7e Made request/response classes immutable and using builder patterns to build them. 2008-09-20 13:55:52 +00:00
Inderjeet Singh 7da18b96e8 fixed issue 46 by adding toString() methods to Gson, serializers, deserializers, and instanceCreators, and default type adapters. 2008-09-16 18:28:31 +00:00
Joel Leitch 973696cbf5 Tests exposing bug 43 and 44. 2008-09-16 17:53:43 +00:00
Inderjeet Singh 82851d68be Moved the setDoInput() on HttpURLConnection before sending any data on the connection.
disabled configuration settings on install in pom.xml that were interfering with the normal behavior of install.
2008-09-15 17:00:26 +00:00
Inderjeet Singh 2753213c2e Using name to generate Javadoc window titles in Gson. Added a source section in wsf. 2008-09-15 13:09:41 +00:00
Inderjeet Singh 0358db8873 added todos to correctly generate source and javadoc jars. 2008-09-15 12:50:32 +00:00
Inderjeet Singh 64fd7baf25 Added toString() methods. 2008-09-15 12:40:11 +00:00
Inderjeet Singh 39167e3af9 added settings to deploy source jar. 2008-09-14 16:16:11 +00:00
Inderjeet Singh 5520d20c41 made guice providers public. 2008-09-01 14:38:13 +00:00
Inderjeet Singh 7726e0bbbb removed unused import. 2008-09-01 14:32:20 +00:00
Inderjeet Singh 685710b124 added an assembly and javadoc descriptor for maven. 2008-09-01 14:24:27 +00:00
Inderjeet Singh e6629947d0 updated the svn properties to ignore target and eclipse project directories and files.
added javadoc settings.
2008-09-01 14:24:00 +00:00
Inderjeet Singh 849612c50f initial creation of the wsf project. 2008-09-01 13:37:34 +00:00
Inderjeet Singh 1e5f1740cd fixed some paths. 2008-09-01 13:36:37 +00:00
Inderjeet Singh 165fd78726 moved lib at the top-level to share eclipse styles. 2008-09-01 03:27:34 +00:00
Inderjeet Singh 57d1f32de5 moved gson as a project under trunk 2008-09-01 03:13:32 +00:00