Skip to content

Commit 02f3e2a

Browse files
authored
fix: java.lang.reflect.InaccessibleObjectException in functions.StackdriverLogging sample (GoogleCloudPlatform#7118)
* fix: java.lang.reflect.InaccessibleObjectException in functions.StackdriverLogging sample
1 parent 956a962 commit 02f3e2a

File tree

1 file changed

+2
-0
lines changed
  • functions/logging/stackdriver-logging

1 file changed

+2
-0
lines changed

functions/logging/stackdriver-logging/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@
105105
<!-- see https://issues.apache.org/jira/browse/SUREFIRE-1750 -->
106106
<version>3.0.0-M5</version>
107107
<configuration>
108+
<!-- This is needed for Java 17 compatibility -->
109+
<argLine>--add-opens java.base/java.time=ALL-UNNAMED</argLine>
108110
<includes>
109111
<include>**/*Test.java</include>
110112
</includes>

0 commit comments

Comments
 (0)