harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shi Jun Zhang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6565) [java6][classlib][instrument]NoSuchMethodException throws when Agent only implements premain(String) method
Date Fri, 02 Jul 2010 06:11:52 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Shi Jun Zhang updated HARMONY-6565:

    Attachment: HARMONY-6565.diff

This patch includes the fix and the test case. I add a try/catch clause to try to invoke
    public static void premain(String agentArgs, Instrumentation inst); 
in Agent class first, if the method is not found, invoke
    public static void premain(String agentArgs); 

> [java6][classlib][instrument]NoSuchMethodException throws when Agent only implements
premain(String) method
> -----------------------------------------------------------------------------------------------------------
>                 Key: HARMONY-6565
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6565
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 6.0M2
>         Environment: All
>            Reporter: Shi Jun Zhang
>         Attachments: HARMONY-6565.diff
> In Java 6 spec, there can be an one argument method premain(java.lang.String) in Agent
class if user doesn't implement the premain(java.lang.String, java.lang.instrument.Instrumentation).
> NoSuchMethodException should not be thrown if there is either premain(java.lang.String)
or premain(java.lang.String, java.lang.instrument.Instrumentation).

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message