Skip to content

Commit 2079215

Browse files
authored
Build Java code to be compatible with older Java (#96)
## What is the goal of this PR? Currently, we compile Protocol on CI with Java 11. This could result in unexpected runtime issues when running on older Java, such as `java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;` that we experienced. ## What are the changes implemented in this PR? Pass Java compiler option to produce bytecode compatible with Java 8
1 parent a913757 commit 2079215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
#
1717

18-
build --incompatible_strict_action_env
18+
build --incompatible_strict_action_env --javacopt='--release 8'
1919
run --incompatible_strict_action_env
2020
test --incompatible_strict_action_env
2121

0 commit comments

Comments
 (0)