swift-lang / swift-t

Swift/T: High Performance Parallel Scripting Language
http://swift-lang.org/Swift-T
Apache License 2.0
53 stars 22 forks source link

Java 19 on Mac #197

Closed j-woz closed 2 years ago

j-woz commented 2 years ago

Apparently the new Java 19 (circa Sept. 2022) on Mac will not accept Java 6 (circa Dec. 2006) source code. I will update the source to Java 7.

CC @rajeeja @ketancmaheshwari

rajeeja commented 2 years ago

the following changes make it work:

diff --git a/stc/code/build.xml b/stc/code/build.xml
index 00185e7c6..0cfb71b2d 100644
--- a/stc/code/build.xml
+++ b/stc/code/build.xml
@@ -142,8 +142,8 @@
           debuglevel="source,lines,vars"
           includeantruntime="false"
           classpath=".:${antlr.jar}"
-          target="1.6"
-          source="1.6">
+          target="1.7"
+          source="1.7">
      <compilerarg value="-Xlint"/>
      <compilerarg value="-Xlint:-cast"/>
    </javac>