Skip to content

Commit d7a3397

Browse files
committed
build: register ClientSideStatementBeginExecutor for reflection
1 parent 68e4275 commit d7a3397

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/nativeimage/SpannerFeature.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ final class SpannerFeature implements Feature {
3939
"com.google.cloud.spanner.connection.ClientSideStatementNoParamExecutor";
4040
private static final String CLIENT_SIDE_STATEMENT_SET_EXECUTOR =
4141
"com.google.cloud.spanner.connection.ClientSideStatementSetExecutor";
42+
private static final String CLIENT_SIDE_STATEMENT_BEGIN_EXECUTOR =
43+
"com.google.cloud.spanner.connection.ClientSideStatementBeginExecutor";
4244
private static final String CLIENT_SIDE_STATEMENT_PG_EXECUTOR =
4345
"com.google.cloud.spanner.connection.ClientSideStatementPgBeginExecutor";
4446
private static final String CLIENT_SIDE_STATEMENT_EXPLAIN_EXECUTOR =
@@ -67,6 +69,9 @@ public void beforeAnalysis(BeforeAnalysisAccess access) {
6769
if (access.findClassByName(CLIENT_SIDE_STATEMENT_NO_PARAM_EXECUTOR) != null) {
6870
NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_NO_PARAM_EXECUTOR);
6971
}
72+
if (access.findClassByName(CLIENT_SIDE_STATEMENT_BEGIN_EXECUTOR) != null) {
73+
NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_BEGIN_EXECUTOR);
74+
}
7075
if (access.findClassByName(CLIENT_SIDE_STATEMENT_PG_EXECUTOR) != null) {
7176
NativeImageUtils.registerClassForReflection(access, CLIENT_SIDE_STATEMENT_PG_EXECUTOR);
7277
}

0 commit comments

Comments
 (0)