Skip to content
Permalink
Browse files
fix: do not serialize unnecessary fields (#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.
  • Loading branch information
thiagotnunes committed Sep 15, 2021
1 parent 2d262a1 commit 29209f83d10fa01b5566da66259da95dd60abca0
Showing with 2 additions and 2 deletions.
  1. +2 −2 google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ClientSideStatementImpl.java
@@ -131,10 +131,10 @@ public String getMessage() {
private ClientSideSetStatementImpl setStatement;

/** The compiled regex pattern for recognizing this statement. */
private Pattern pattern;
private transient Pattern pattern;

/** A reference to the executor that should be used. */
private ClientSideStatementExecutor executor;
private transient ClientSideStatementExecutor executor;

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

0 comments on commit 29209f8

Please sign in to comment.