Skip to content

Commit 29209f8

Browse files
authored
fix: do not serialize unnecessary fields (googleapis#1426)
Do not serialize java.util.regex.Pattern and executor fields in client side statement. This caused an issue with Java 16 compilation, where an IllegalAccessException is thrown during JSON serialization of such fields.
1 parent 2d262a1 commit 29209f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ClientSideStatementImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ public String getMessage() {
131131
private ClientSideSetStatementImpl setStatement;
132132

133133
/** The compiled regex pattern for recognizing this statement. */
134-
private Pattern pattern;
134+
private transient Pattern pattern;
135135

136136
/** A reference to the executor that should be used. */
137-
private ClientSideStatementExecutor executor;
137+
private transient ClientSideStatementExecutor executor;
138138

139139
/**
140140
* Compiles this {@link ClientSideStatementImpl}. Throws a {@link CompileException} if the

0 commit comments

Comments
 (0)