https://issues.apache.org/bugzilla/show_bug.cgi?id=45228
--- Comment #2 from Larry Heidt <[EMAIL PROTECTED]> 2008-06-30 15:03:00 PST ---
suggest adding something like the "log" method and call below to the Javac13
class to reveal problems like the OutOfMemoryError above:
log(ex); //*** NEW
throw new BuildException("Error starting modern compiler",
ex, location);
}
}
}
/**
* Log the specified Throwable.
* @param t the Throwable to log.
*/
private void log(Throwable t) {
if (getProject() == null) {
t.printStackTrace();
} else {
StringWriter sw = new StringWriter();
PrintWriter w = new PrintWriter(sw);
t.printStackTrace(w);
w.close();
getProject().log(sw.toString(), Project.MSG_ERR);
}
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.