[
http://jira.codehaus.org/browse/MEXEC-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Trevor Harmon updated MEXEC-89:
-------------------------------
Attachment: ExecJavaMojo.java.patch
The attached patch fixes the bug. It changes the IsolatedThreadGroup class to
report exceptions immediately instead of simply remembering them.
I am not sure what impact this change has and whether it will break some other
behavior of the plugin, since I don't know why the exceptions were being
suppressed in the first place.
> Exceptions are not reported until program termination
> -----------------------------------------------------
>
> Key: MEXEC-89
> URL: http://jira.codehaus.org/browse/MEXEC-89
> Project: Maven 2.x Exec Plugin
> Issue Type: Bug
> Components: java
> Affects Versions: 1.2
> Reporter: Trevor Harmon
> Attachments: ExecJavaMojo.java.patch, threadtest.zip
>
>
> If a Java program is launched with exec:java, and the program throws an
> exception, the exception is suppressed until the program terminates. This is
> very different from the standard "java" launcher, which reports any unhandled
> exceptions immediately. The bug is especially problematic for GUI apps, in
> which event handler threads may throw exceptions while the main thread
> continues to run, and an exception could be thrown without the user's
> knowledge. (See related bug MEXEC-80, which is merely a special case of this
> one.)
> Attached is a very simple test case that reproduces the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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