diff --git a/pom.xml b/pom.xml
index 78137eb4e9..9aa92479c0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -111,7 +111,7 @@ under the License.
2
10.23.0
true
- 2.42.0
+ 2.50.0
4.2.1
1.5.37
none
@@ -850,7 +850,7 @@ under the License.
-->
error-prone
- [17,)
+ [21,)
!m2e.version
@@ -863,6 +863,7 @@ under the License.
-XDcompilePolicy=simple
+ -XDaddTypeAnnotationsToSymbol=true
-Xplugin:ErrorProne -XepExcludedPaths:.*/(target/generated-source|format/src/main/java/org/apache/arrow/flatbuf)/.*
-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED