[
https://jira.codehaus.org/browse/MEXEC-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MEXEC-98.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.2.1
Assignee: Robert Scholte
Fixed in [rev. 14645|http://fisheye.codehaus.org/changelog/mojo/?cs=14645]
I've added a check if the main method is static. If not, throw an exception
with a proper message.
> "object is not an instance of declaring class" error
> ----------------------------------------------------
>
> Key: MEXEC-98
> URL: https://jira.codehaus.org/browse/MEXEC-98
> Project: Maven 2.x Exec Plugin
> Issue Type: Bug
> Reporter: Markus
> Assignee: Robert Scholte
> Fix For: 1.2.1
>
>
> I got this error when using the exec:java mojo. An other people as well:
> http://mail-archives.apache.org/mod_mbox/incubator-clerezza-dev/201006.mbox/%[email protected]%3E
> The reason is that I only wrote "public void main(String[] args)" and forgot
> the static. However, this silly error message is due to a bug in
> ExecJavaMojo.java line 291:
> main.invoke( main, new Object[]{arguments} );
> it should say:
> main.invoke( null, new Object[]{arguments} );
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email