Commit 51fcecd8 authored by Lubomir Bulej's avatar Lubomir Bulej

DiSL-RE: Minor fixes in ShadowObject and AnalysisInvocation.

parent a519a66b
......@@ -26,13 +26,11 @@ public class AnalysisInvocation {
} catch (final Exception e) {
// report error during analysis invocation
final Throwable cause = e.getCause ();
final String message = cause.getMessage ();
System.err.format (
"DiSL-RE: exception in analysis %s.%s(): %s",
"DiSL-RE: exception in analysis %s.%s(): ",
analysisMethod.getDeclaringClass ().getName (),
analysisMethod.getName (),
(message != null) ? message : ""
analysisMethod.getName ()
);
cause.printStackTrace();
......
......@@ -71,7 +71,7 @@ public class ShadowObject implements Formattable {
final Formatter formatter,
final int flags, final int width, final int precision
) {
formatter.format ("%s@%x", shadowClass.getName (), shadowId);
formatter.format ("%s@%x", (shadowClass != null) ? shadowClass.getName () : "<missing>", shadowId);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment