Issue Type: Bug Bug
Assignee: Unassigned
Components: java
Created: 04/Jul/12 5:22 AM
Description:

Setting the UncaughtExceptionHandler when using the java goal has no effect. This is undocumented and can cause issues with an application (I rely on a custom UncaughtExceptionHandler to do custom business logic).

public static void main(String[] args) throws InterruptedException {
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {

@Override
public void uncaughtException(Thread t, Throwable e) { System.out.println("Uncaught exception: " + e.getMessage()); }
});

Executors.newSingleThreadExecutor().execute(new Runnable() {

@Override
public void run() { int i = 1 / 0; }
});
Thread.sleep(1000);
System.exit(0);
}

Project: Maven 2.x Exec Plugin
Priority: Major Major
Reporter: Dwayne D'Souza
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to