diff --git a/src/org/ntlab/traceDebugger/analyzerProvider/Alias.java b/src/org/ntlab/traceDebugger/analyzerProvider/Alias.java index 15b487c..0ff8e1a 100644 --- a/src/org/ntlab/traceDebugger/analyzerProvider/Alias.java +++ b/src/org/ntlab/traceDebugger/analyzerProvider/Alias.java @@ -2,13 +2,17 @@ import org.ntlab.traceAnalysisPlatform.tracer.trace.ArrayAccess; import org.ntlab.traceAnalysisPlatform.tracer.trace.ArrayCreate; -import org.ntlab.traceAnalysisPlatform.tracer.trace.BlockEnter; import org.ntlab.traceAnalysisPlatform.tracer.trace.FieldAccess; import org.ntlab.traceAnalysisPlatform.tracer.trace.MethodExecution; import org.ntlab.traceAnalysisPlatform.tracer.trace.MethodInvocation; import org.ntlab.traceAnalysisPlatform.tracer.trace.Statement; import org.ntlab.traceAnalysisPlatform.tracer.trace.TracePoint; - + +/** + * �I�u�W�F�N�g�̎Q�Ə��(�G�C���A�X)��\���N���X + * @author Isitani + * + */ public class Alias { private String objectId; private TracePoint occurrencePoint; // ���Y�I�u�W�F�N�g�̎Q�Ƃ��s���Ă�����s�ӏ��ɑΉ�����TracePoint @@ -28,7 +32,7 @@ ARRAY_ELEMENT, ARRAY, ARRAY_CREATE, - + // ���\�b�h����̏o�� ACTUAL_ARGUMENT, RECEIVER, @@ -63,12 +67,19 @@ } public String getMethodSignature() { - return occurrencePoint.getMethodExecution().getCallerSideSignature(); + String signature = occurrencePoint.getMethodExecution().getCallerSideSignature(); + if (signature != null) return signature; + return occurrencePoint.getMethodExecution().getSignature(); +// return occurrencePoint.getMethodExecution().getCallerSideSignature(); } public int getLineNo() { - Statement statement = occurrencePoint.getStatement(); - return statement.getLineNo(); + try { + Statement statement = occurrencePoint.getStatement(); + return statement.getLineNo(); + } catch (Exception e) { + return -1; + } } public void setIndex(int index) {