The "Line" value of the Source Lookup event property displays
correctly, but throws an AssertionFailedException upon clicking
on it.
This is due to the property source returning a Long object
instead of a String. It was using Long.valueOf(long) instead
of String.valueOf(long). Changing the return type highlights
it clearly.
Change-Id: Ie12813c67ef754b2bcf1bb38804b08565847dea8
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/70316
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
}
@Override
- public Object getPropertyValue(Object id) {
+ public String getPropertyValue(Object id) {
ITmfCallsite cs = fSourceLookup.getCallsite();
if (cs == null) {
/*
case ID_FUNCTION_NAME:
return cs.getFunctionName();
case ID_LINE_NUMBER:
- return Long.valueOf(cs.getLineNumber());
+ return String.valueOf(cs.getLineNumber());
default:
return null;
}