Skip to content

Commit 150d645

Browse files
author
Tom Graves
committed
[SPARK-8574] org/apache/spark/unsafe doesn't honor the java source/target versions
1 parent cc465fd commit 150d645

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

unsafe/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,19 @@
8383
<javacArgs>
8484
<!-- This option is needed to suppress warnings from sun.misc.Unsafe usage -->
8585
<javacArg>-XDignore.symbol.file</javacArg>
86+
<javacArg>-source</javacArg>
87+
<javacArg>${java.version}</javacArg>
88+
<javacArg>-target</javacArg>
89+
<javacArg>${java.version}</javacArg>
8690
</javacArgs>
8791
</configuration>
8892
</plugin>
8993
<plugin>
9094
<groupId>org.apache.maven.plugins</groupId>
9195
<artifactId>maven-compiler-plugin</artifactId>
9296
<configuration>
97+
<source>${java.version}</source>
98+
<target>${java.version}</target>
9399
<compilerArgs>
94100
<!-- This option is needed to suppress warnings from sun.misc.Unsafe usage -->
95101
<arg>-XDignore.symbol.file</arg>

0 commit comments

Comments
 (0)