Main.java: Accept -source 1.5, 1.6, 1.7.

2013-01-10  Matthias Klose <doko@ubuntu.com>

        * tools/gnu/classpath/tools/gjdoc/Main.java: Accept -source 1.5,
        1.6, 1.7.

From-SVN: r195199
This commit is contained in:
Matthias Klose 2013-01-15 14:06:19 +00:00 committed by Matthias Klose
parent ce02e92b82
commit ff9d82afcb
19 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-01-10 Matthias Klose <doko@ubuntu.com>
* tools/gnu/classpath/tools/gjdoc/Main.java: Accept -source 1.5,
1.6, 1.7.
2012-09-20 Release Manager
* GCC 4.7.2 released.

View File

@ -1337,12 +1337,17 @@ public final class Main
void process(String[] args)
{
option_source = args[0];
if (!"1.2".equals(option_source)
if ("1.5".equals(option_source)
|| "1.6".equals(option_source)
|| "1.7".equals(option_source)) {
System.err.println("WARNING: support for option -source " + option_source + " is experimental");
}
else if (!"1.2".equals(option_source)
&& !"1.3".equals(option_source)
&& !"1.4".equals(option_source)) {
throw new RuntimeException("Only he following values are currently"
+ " supported for option -source: 1.2, 1.3, 1.4.");
throw new RuntimeException("Only the following values are currently"
+ " supported for option -source: 1.2, 1.3, 1.4; experimental: 1.5, 1.6, 1.7.");
}
}
});