OSDN Git Service

Test and document our handling of nulls with getString().
authorJesse Wilson <jessewilson@google.com>
Thu, 25 Mar 2010 20:31:43 +0000 (13:31 -0700)
committerJesse Wilson <jessewilson@google.com>
Thu, 25 Mar 2010 21:35:00 +0000 (14:35 -0700)
commitf2f7880a40aed1c8d9c27db49226e47396556aac
treeb68b8d316c7f0ac5943e2dce244ae016095fddb7
parentd630700a9fbc6d317e0b4df73cbbc74a2c8fadaa
Test and document our handling of nulls with getString().

Our behaviour is consistent with Crockford's.

The test confirms that the behaviour is consistent with the report
of that bug, which the submitter claims is not how it should behave.
http://code.google.com/p/android/issues/detail?id=7257

Change-Id: Ibace4bd995e3cbc8fb6c9dc509f8f4491865a647
libcore/json/src/main/java/org/json/JSONObject.java
libcore/json/src/test/java/org/json/JSONArrayTest.java