From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2774 invoked by alias); 19 Dec 2012 13:01:28 -0000 Received: (qmail 2762 invoked by uid 22791); 19 Dec 2012 13:01:27 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from youngberry.canonical.com (HELO youngberry.canonical.com) (91.189.89.112) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Dec 2012 13:01:14 +0000 Received: from dslb-088-073-108-045.pools.arcor-ip.net ([88.73.108.45] helo=[192.168.42.216]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1TlJGr-0005Hk-Ez; Wed, 19 Dec 2012 13:01:13 +0000 Message-ID: <50D1BA96.8000600@ubuntu.com> Date: Wed, 19 Dec 2012 13:01:00 -0000 From: Matthias Klose User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: classpath-patches@gnu.org, GCJ-patches Subject: [patch] let gjavah accept -source 1.[567] Content-Type: multipart/mixed; boundary="------------000808090505000008040001" X-IsSubscribed: yes Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2012-q4/txt/msg00053.txt.bz2 This is a multi-part message in MIME format. --------------000808090505000008040001 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Content-length: 156 Currently gjavah only accepts -source 1.4 and lower, and errors out for any other value. Would it be reasonable to accept higher versions too? Matthias --------------000808090505000008040001 Content-Type: text/x-diff; name="gjdoc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gjdoc.diff" Content-length: 1009 Index: classpath/tools/gnu/classpath/tools/gjdoc/Main.java =================================================================== --- classpath/tools/gnu/classpath/tools/gjdoc/Main.java (Revision 194604) +++ classpath/tools/gnu/classpath/tools/gjdoc/Main.java (Arbeitskopie) @@ -1339,10 +1310,13 @@ option_source = args[0]; if (!"1.2".equals(option_source) && !"1.3".equals(option_source) - && !"1.4".equals(option_source)) { + && !"1.4".equals(option_source) + && !"1.5".equals(option_source) + && !"1.6".equals(option_source) + && !"1.7".equals(option_source)) { throw new RuntimeException("Only he following values are currently" - + " supported for option -source: 1.2, 1.3, 1.4."); + + " supported for option -source: 1.2, 1.3, 1.4, 1.5, 1.6, 1.7."); } } }); --------------000808090505000008040001--