From a54572d8914ed654cf8d974d398a6335200b394f Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 20 Feb 2013 11:05:10 -0500 Subject: [PATCH] Fix EnumDefinition's "value" field assignments Change-Id: I927f904fab8f60e6d762541a36164dcc93650edb Signed-off-by: Simon Marchi Reviewed-on: https://git.eclipse.org/r/10524 Tested-by: Hudson CI Reviewed-by: Matthew Khouzam IP-Clean: Matthew Khouzam Tested-by: Matthew Khouzam --- .../linuxtools/ctf/core/event/types/EnumDefinition.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java index f04f1d118c..1fc57fa1a5 100644 --- a/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java +++ b/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java @@ -54,7 +54,7 @@ public class EnumDefinition extends SimpleDatatypeDefinition { integerValue = declaration.getContainerType().createDefinition( definitionScope, fieldName); - value = ((Long) integerValue.getValue()).toString(); + value = declaration.query(integerValue.getValue()); } // ------------------------------------------------------------------------ @@ -89,7 +89,7 @@ public class EnumDefinition extends SimpleDatatypeDefinition { */ public void setIntegerValue(long Value) { integerValue.setValue(Value); - value = ((Long) integerValue.getValue()).toString(); + value = declaration.query(Value); } @Override -- 2.34.1