mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 17:00:58 +08:00
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: r195197
This commit is contained in:
parent
2869f0ff8a
commit
e478072e85
@ -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-12-17 Andrew Haley <aph@redhat.com>
|
||||
|
||||
PR gcc/55716
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1308,12 +1308,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.");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user