Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 95690 invoked from network); 19 Apr 2007 10:47:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 10:47:36 -0000 Received: (qmail 59436 invoked by uid 500); 19 Apr 2007 10:47:42 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 59416 invoked by uid 500); 19 Apr 2007 10:47:42 -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 59407 invoked by uid 99); 19 Apr 2007 10:47:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 03:47:42 -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, 19 Apr 2007 03:47:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 75F66714069 for ; Thu, 19 Apr 2007 03:47:15 -0700 (PDT) Message-ID: <26822544.1176979635480.JavaMail.jira@brutus> Date: Thu, 19 Apr 2007 03:47:15 -0700 (PDT) From: "Kelvin Ye (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (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 ] Kelvin Ye updated HARMONY-3685: ------------------------------- Attachment: harmony-3685.diff > [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 > Attachments: harmony-3685.diff > > > 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.