~ubuntu-branches/ubuntu/trusty/gcc-snapshot/trusty

« back to all changes in this revision

Viewing changes to debian/patches/libjava-gjdoc.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-20 22:11:07 UTC
  • Revision ID: package-import@ubuntu.com-20130120221107-ef4j9mkxm9vu5dw4
Tags: 20130120-0ubuntu2
Fix build failure on armhf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# DP: Let gjdoc accept -source 1.5|1.6|1.7. Addresses: #678945.
2
 
 
3
 
--- a/src/libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java
4
 
+++ b/src/libjava/classpath/tools/gnu/classpath/tools/gjdoc/Main.java
5
 
@@ -1337,12 +1337,17 @@
6
 
           void process(String[] args)
7
 
           {
8
 
             option_source = args[0];
9
 
-            if (!"1.2".equals(option_source)
10
 
+            if ("1.5".equals(option_source)
11
 
+                || "1.6".equals(option_source)
12
 
+                || "1.7".equals(option_source)) {
13
 
+              System.err.println("WARNING: support for option -source " + option_source + " is experimental");
14
 
+            }
15
 
+            else if (!"1.2".equals(option_source)
16
 
                 && !"1.3".equals(option_source)
17
 
                 && !"1.4".equals(option_source)) {
18
 
 
19
 
-              throw new RuntimeException("Only he following values are currently"
20
 
-                                         + " supported for option -source: 1.2, 1.3, 1.4.");
21
 
+              throw new RuntimeException("Only the following values are currently"
22
 
+                                         + " supported for option -source: 1.2, 1.3, 1.4; experimental: 1.5, 1.6, 1.7.");
23
 
             }
24
 
           }
25
 
         });