Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 12417 invoked from network); 26 Apr 2007 08:29:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2007 08:29:37 -0000 Received: (qmail 97298 invoked by uid 500); 26 Apr 2007 08:29:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 97257 invoked by uid 500); 26 Apr 2007 08:29:43 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 97248 invoked by uid 99); 26 Apr 2007 08:29:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 01:29:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 01:29:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BDF0471407D for ; Thu, 26 Apr 2007 01:29:15 -0700 (PDT) Message-ID: <6588259.1177576155774.JavaMail.jira@brutus> Date: Thu, 26 Apr 2007 01:29:15 -0700 (PDT) From: "Paulex Yang (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-3685) [classlib][tools] missing method of com.sun.tools.javac.Main.compile([Ljava.lang.String;, java.io.PrintWriter) In-Reply-To: <25661283.1176884595275.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paulex Yang resolved HARMONY-3685. ---------------------------------- Resolution: Fixed Kelvin, patch applied at revision r532653 with modifications, I had some concerns on test package - com.sun.tests.tools., I'm not sure it's right thing for us to create a new package started with "com.sun", further it doesn't comply with Harmony's test naming conventions[1], so I merged the testcase to o.a.h.tests.tools.javac.MainTest. Thanks a lot for this enhancement. Sean, please verify, thanks. [1] http://harmony.apache.org/subcomponents/classlibrary/pkgnaming.html > [classlib][tools] missing method of com.sun.tools.javac.Main.compile([Ljava.lang.String;, java.io.PrintWriter) > -------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-3685 > URL: https://issues.apache.org/jira/browse/HARMONY-3685 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Windows XP > Reporter: Sean Qiu > Assigned To: Paulex Yang > Attachments: harmony-3685.diff, harmony-3685.zip > > > public class Test extends TestCase { > public void test_main() throws Exception { > File toolsJar = new File(System.getProperty("java.home"), > "../lib/tools.jar"); > URLClassLoader loader = new URLClassLoader( > new URL[] { toolsJar.toURL() }); > Class mainClass = loader.loadClass("com.sun.tools.javac.Main"); > StringWriter out = new StringWriter(); > Method compile = mainClass.getMethod("compile", new Class[] { > String[].class, PrintWriter.class }); > Integer result = (Integer) compile.invoke(null, new Object[] { > new String[0], new PrintWriter(out) }); > assertEquals(new Integer(2), result); > } > } > ====== Result ====== > RI: pass > Harmony: throw java.lang.NoSuchMethodException: com.sun.tools.javac.Main.compile([Ljava.lang.String;, java.io.PrintWriter) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.