Skip to content

Commit

Permalink
Changed "-source 9" use from error to warning in j2objc, cycle_finder.
Browse files Browse the repository at this point in the history
	Change on 2017/10/14 by tball <tball@google.com>

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=172217649
  • Loading branch information
tomball committed Oct 18, 2017
1 parent d2bdfa0 commit 7c57277
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.common.collect.Lists;
import com.google.common.io.Files;
import com.google.common.io.Resources;
import com.google.devtools.j2objc.util.ErrorUtil;
import com.google.devtools.j2objc.util.SourceVersion;
import com.google.devtools.j2objc.util.Version;
import java.io.BufferedReader;
Expand Down Expand Up @@ -200,7 +201,8 @@ public static Options parse(String[] args) throws IOException {
options.sourceVersion = SourceVersion.parse(args[nArg]);
// TODO(tball): remove when Java 9 source is supported.
if (options.sourceVersion == SourceVersion.JAVA_9) {
usage("Java 9 source version is not currently supported.");
ErrorUtil.warning("Java 9 source version is not supported, using Java 8.");
options.sourceVersion = SourceVersion.JAVA_8;
}
} catch (IllegalArgumentException e) {
usage("invalid source release: " + args[nArg]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ private void processArg(Iterator<String> args) throws IOException {
sourceVersion = SourceVersion.parse(s);
// TODO(tball): remove when Java 9 source is supported.
if (sourceVersion == SourceVersion.JAVA_9) {
usage("Java 9 source version is not currently supported.");
ErrorUtil.warning("Java 9 source version is not supported, using Java 8.");
sourceVersion = SourceVersion.JAVA_8;
}
} catch (IllegalArgumentException e) {
usage("invalid source release: " + s);
Expand Down

0 comments on commit 7c57277

Please sign in to comment.