diff --git a/TracerOnJavassist/src/tracer/JSONArrayAdvisor.java b/TracerOnJavassist/src/tracer/JSONArrayAdvisor.java index 8bcbe47..5095460 100644 --- a/TracerOnJavassist/src/tracer/JSONArrayAdvisor.java +++ b/TracerOnJavassist/src/tracer/JSONArrayAdvisor.java @@ -86,7 +86,7 @@ public static void arrayWriteChar(Object array, int index, char value) { long threadId = Thread.currentThread().getId(); long timeStamp = System.nanoTime(); - JSONTraceGenerator.arraySetOutput(array.getClass().getName(), Integer.toString(System.identityHashCode(array)), index, "char", Character.toString(value), threadId, timeStamp); + JSONTraceGenerator.arraySetOutput(array.getClass().getName(), Integer.toString(System.identityHashCode(array)), index, "char", Integer.toString(Character.getNumericValue(value)), threadId, timeStamp); ((char [])array)[index] = value; } @@ -94,7 +94,7 @@ char value = ((char [])array)[index]; long threadId = Thread.currentThread().getId(); long timeStamp = System.nanoTime(); - JSONTraceGenerator.arrayGetOutput(array.getClass().getName(), Integer.toString(System.identityHashCode(array)), index, "char", Character.toString(value), threadId, timeStamp); + JSONTraceGenerator.arrayGetOutput(array.getClass().getName(), Integer.toString(System.identityHashCode(array)), index, "char", Integer.toString(Character.getNumericValue(value)), threadId, timeStamp); return value; }