You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2008/03/28 11:08:25 UTC

[jira] Commented: (HARMONY-2034) [classlib][launcher] Should throw exception if main method is not public

    [ https://issues.apache.org/jira/browse/HARMONY-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582966#action_12582966 ] 

Tim Ellison commented on HARMONY-2034:
--------------------------------------

Is there any portable way to do this check, other than going ToReflectedMethod() and asking if it is public?

Just thinking that would not be fast :-(

> [classlib][launcher] Should throw exception if main method is not public
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-2034
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2034
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey Varlamov
>            Priority: Trivial
>
> The Java Language Specification requires that the method main must be declared public, static,
> and void. (Paragraph 12.1.4 of Java Language Specification, 3rd edition)
> The launcher does not check access modifiers of the method.

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