[ 
https://issues.apache.org/jira/browse/SPARK-44376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yang Jie resolved SPARK-44376.
------------------------------
    Fix Version/s: 3.5.0
                   4.0.0
       Resolution: Fixed

Issue resolved by pull request 42364
[https://github.com/apache/spark/pull/42364]

> Build using maven is broken using 2.13 and Java 11 and Java 17
> --------------------------------------------------------------
>
>                 Key: SPARK-44376
>                 URL: https://issues.apache.org/jira/browse/SPARK-44376
>             Project: Spark
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.5.0
>            Reporter: Emil Ejbyfeldt
>            Priority: Major
>             Fix For: 3.5.0, 4.0.0
>
>
> Fails with
> ```
> $ ./build/mvn compile -Pscala-2.13 -Djava.version=11 -X
> ...
> [WARNING] [Warn] : [deprecation @  | origin= | version=] -target is 
> deprecated: Use -release instead to compile against the correct platform API.
> [ERROR] [Error] : target platform version 8 is older than the release version 
> 11
> [WARNING] one warning found
> [ERROR] one error found
> ...
> ```
> if setting the `java.version` property or
> ```
> $ ./build/mvn compile -Pscala-2.13
> ...
> [WARNING] [Warn] : [deprecation @  | origin= | version=] -target is 
> deprecated: Use -release instead to compile against the correct platform API.
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/serializer/SerializationDebugger.scala:71:
>  not found: value sun
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:26:
>  not found: object sun
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:27:
>  not found: object sun
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:206:
>  not found: type DirectBuffer
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:210:
>  not found: type Unsafe
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:212:
>  not found: type Unsafe
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:213:
>  not found: type DirectBuffer
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:216:
>  not found: type DirectBuffer
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:236:
>  not found: type DirectBuffer
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:26:
>  Unused import
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/storage/StorageUtils.scala:27:
>  Unused import
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/ClosureCleaner.scala:452:
>  not found: value sun
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:26:
>  not found: object sun
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:99:
>  not found: type SignalHandler
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:99:
>  not found: type Signal
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:83:
>  not found: type Signal
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:108:
>  not found: type SignalHandler
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:108:
>  not found: value Signal
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:114:
>  not found: type Signal
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:116:
>  not found: value Signal
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:128:
>  not found: value Signal
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:26:
>  Unused import
> [ERROR] [Error] 
> /home/eejbyfeldt/dev/apache/spark/core/src/main/scala/org/apache/spark/util/SignalUtils.scala:26:
>  Unused import
> [WARNING] one warning found
> [ERROR] 23 errors found
> ...
> ```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to