Skip to content

Commit be05c1e

Browse files
authored
Make MAX_STRING_NODE_LENGTH configurable (#9995)
Make `ServerSerializationStreamWriter.MAX_STRING_NODE_LENGTH` configurable, to better work around #9578 and allow real JSON in all cases. This PR is a follow-up to #9961 (making the rpc serialization chunk size configurable). Workaround #9578 Followup #9961
1 parent 4cc3679 commit be05c1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ abstract void write(ServerSerializationStreamWriter stream, Object instance)
345345
* This exists to work around a Rhino parser bug in the hosted mode client
346346
* that limits string node lengths to 64KB.
347347
*/
348-
private static final int MAX_STRING_NODE_LENGTH = 0xFFFF;
348+
private static final int MAX_STRING_NODE_LENGTH =
349+
Integer.getInteger("gwt.rpc.maxStringNodeLength", 0xFFFF);
349350

350351
static {
351352
/*

0 commit comments

Comments
 (0)