This is an automated email from the ASF dual-hosted git repository.
bhulette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 1e72e60b5d4 Disable `optimizeOuterThis` when building with JDK > 8
(#23902)
1e72e60b5d4 is described below
commit 1e72e60b5d45df19b82feae362f752efc87e44f5
Author: Brian Hulette <[email protected]>
AuthorDate: Mon Oct 31 11:47:51 2022 -0700
Disable `optimizeOuterThis` when building with JDK > 8 (#23902)
---
.../src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
index 7e4c8a1674d..6766db5d509 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
@@ -922,6 +922,9 @@ class BeamModulePlugin implements Plugin<Project> {
if
(JavaVersion.VERSION_1_8.compareTo(JavaVersion.toVersion(project.javaVersion))
== 0
&& JavaVersion.VERSION_1_8.compareTo(JavaVersion.current()) < 0) {
options.compilerArgs += ['--release', '8']
+ // TODO(https://github.com/apache/beam/issues/23901): Fix
+ // optimizerOuterThis breakage
+ options.compilerArgs += ['-XDoptimizeOuterThis=false']
}
// As we want to add '-Xlint:-deprecation' we intentionally remove
'-Xlint:deprecation' from compilerArgs here,
// as intellij is adding this, see
https://youtrack.jetbrains.com/issue/IDEA-196615