You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2007/04/26 10:29:15 UTC
[jira] Resolved: (HARMONY-3685) [classlib][tools] missing method of
com.sun.tools.javac.Main.compile([Ljava.lang.String;, java.io.PrintWriter)
[ 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.