LuciferYang commented on code in PR #49606:
URL: https://github.com/apache/spark/pull/49606#discussion_r1925760510


##########
core/src/test/scala/org/apache/spark/util/UtilsSuite.scala:
##########
@@ -525,10 +525,14 @@ class UtilsSuite extends SparkFunSuite with 
ResetSystemProperties {
 
     // The following 3 scenarios are only for the method: createDirectory(File)
     // 6. Symbolic link
+    lazy val javaVersion = 
System.getProperty("java.version").split("[+.\\-]+", 3).map(_.toInt)

Review Comment:
   Or we could add a branch to check `SystemUtils.IS_JAVA_1_8` first



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to